Closed ghost closed 3 months ago
Ideally, table drop must be manual, as not always you want to remove the table in production. But there might be configuration option to scan the difference.
For now, you can simply generate empty migration and inside up()
method call $this->getConnection()->dropTable('table_name')
... ->dropTable('table_name', 'schema');
Without schema it don't work for me in 5.x
Dropped tables don't get removed via migration.
Steps to reproduce:
Insert data / tables to db
create migration
delete a table
create a migration again to save the deletion of the table
delete the table which is left and try to run the migrations
The dropped table appears: