Delete table #2701
-
Is there an example of how to delete a table which has been added in a previous version of the DB using migration? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In this case, you should first restructure the table with the foreign key. This can be done with |
Beta Was this translation helpful? Give feedback.
The "actual" schema is the schema of your database, so this error means that drift expected the
TableToDelete
table to still exist om schema 55. This is likely because you haven't deleted the table's definition before exporting the new schema. TheCREATE TABLE
statements in drift files always represent the latest schema, so if you want to delete a table you should also delete it from your sources.That's intentional though - if the table no longer exists, o…