-
Notifications
You must be signed in to change notification settings - Fork 70
CleanUp primary_subdivisions and adif_modes before doing mig #1402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested sucessfully in docker
Tested with no errors here. Set migration to 230, then upgraded. No errors in the log, and indexes were created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as designed here (not sure why I had errors before) ...
primary_subdivision-table has no PK.
this is no problemm but in combination with no downgrade here it could(!) produce dupes.
This one solves the problem, by:
Same problem at adif_modes. This PR cleans up the table and adds a proper unique_key