dsl-compiler-client
dsl-compiler-client copied to clipboard
Migrations become destructive when renaming multiple enums
trafficstars
If you rename enum A -> A' and then B -> A, database migrations become destructive. Both enums and columns using it are dropped and then recreated .
When you just rename A -> A', run the migrations, and then rename B -> A, everything works as expected.
This is unlikely to change until some specialized migration language is introduced. It doesn't seems like a big problem to have refactoring done in multiple steps :(