Make migration prompts clear #4674
stephaniesyed
started this conversation in
Feature Requests & Ideas
Replies: 1 comment 1 reply
-
I found out that the second half of that prompt was affecting the down grade, because if I instead choose to create instead of rename:
the following file is generated:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to rename some models in our repo (User to Employee, ShipperLocation to PartnerSite). In the migration prompts, it doesn't make it clear that it prompts both for upgrade and downgrade strategies (rather than just doing the reverse of the upgrade for the downgrade).
Console output:
The above generates the following migration file:
If the intention is to give users control to define an asymmetric downgrade (create a new table instead of just undoing the rename), it would be good to give a prompt/some kind of output to indicate the second half of the prompts are for downgrade. If it's not important to give that granular control, it would same time to just do the opposite of what was selected for upgrade for down grade.
Beta Was this translation helpful? Give feedback.
All reactions