Skip to content

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

Merged
merged 7 commits into from
Dec 31, 2024

Conversation

int2001
Copy link
Contributor

@int2001 int2001 commented Dec 27, 2024

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:

  • Cleaning up table from (technical) dupes
  • Cleaning up table from logical dupes
  • Adding a UNIQUE_KEY
  • Take care of the UNIQUE_KEY

Same problem at adif_modes. This PR cleans up the table and adds a proper unique_key

@int2001 int2001 changed the title [WIP] CleanUp primary_subdivisions before doing mig CleanUp primary_subdivisions before doing mig Dec 27, 2024
@int2001 int2001 marked this pull request as ready for review December 27, 2024 10:48
@int2001 int2001 added bug Something isn't working database Database related stuff labels Dec 27, 2024
@int2001 int2001 self-assigned this Dec 27, 2024
Copy link
Contributor

@HB9HIL HB9HIL left a 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

@AndreasK79
Copy link
Contributor

Tested with no errors here. Set migration to 230, then upgraded. No errors in the log, and indexes were created.

@int2001 int2001 changed the title CleanUp primary_subdivisions before doing mig CleanUp primary_subdivisions and adif_modes before doing mig Dec 29, 2024
Copy link
Contributor

@phl0 phl0 left a 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) ...

@int2001 int2001 merged commit 19470bb into wavelog:dev Dec 31, 2024
@int2001 int2001 deleted the mig_pk_subdiv branch February 5, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working database Database related stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy