dsl-compiler-client icon indicating copy to clipboard operation
dsl-compiler-client copied to clipboard

Migrations become destructive when renaming multiple enums

Open tmrkus opened this issue 8 years ago • 1 comments
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.

tmrkus avatar Oct 19 '17 11:10 tmrkus

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 :(

zapov avatar Nov 19 '17 12:11 zapov