Prezados,
Não estou obtendo sucesso na criação da migration.
O que tenho de resposta ao executar o comando "php artisan migrate" é:
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table `episodios` add constraint `episodios_serie_id_foreign` foreign key (`serie_id`) references `series` (`id`))
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
Conteúdo da migration:
public function up()
{
Schema::create('episodios', function (Blueprint $table) {
$table->tinyIncrements('id');
$table->integer('temporada');
$table->integer('numero');
$table->boolean('assistido')->default(0);
$table->integer('serie_id')->unsigned();
$table->foreign('serie_id')->references('id')->on('series');
$table->timestamps();
});