Im trying to roll back my migrations.
My migrations file uses foreign keys like so
$table->foreign(\'user_one\')->references(\'id\')->on(\'u
I also faced these kind of issues. Migration file order is the main issue here. The best way is to create migration files one by one. Main entities should be created first. Migration should be refreshed with every migrate file creation. (with php artisan migrate:refresh
)
According to @abkrim and @Eric
public function down()
{
Schema::disableForeignKeyConstraints();
Schema::drop('tableName');
Schema::enableForeignKeyConstraints();
}