Level 51
There's a warning in the docs that this isn't supported
Dropping or modifying multiple columns within a single migration while using a SQLite database is not supported.
Split your operations into two migrations.
3 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I've created a migration that is supposed to drop columns as well as create new ones. When I drop the column, the migration does not add the the columns.
When I remove the dropColumn call, the columns are added just fine. I use SQLite.
Here's the simplified version:
Schema::table('table', function($table) {
$table->integer('new_column_name')->nullable();
$table->dropColumn('old_column_name');
});
There's a warning in the docs that this isn't supported
Dropping or modifying multiple columns within a single migration while using a SQLite database is not supported.
Split your operations into two migrations.
Please or to participate in this conversation.