delete column using TableMigration #1089
Replies: 2 comments 1 reply
-
This requires a complex migration: https://moor.simonbinder.eu/docs/advanced-features/migrations/#complex-migrations |
Beta Was this translation helpful? Give feedback.
-
As Peter said, you need a complex migration. If you don't have any foreign key constraints pointing towards that column, deleting it is actually very simple: await m.alterTable(TableMigration(yourTable)); Basically, |
Beta Was this translation helpful? Give feedback.
-
Is there an example of how to delete column using TableMigration? I have look around a bit and could not see an example about this. Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions