Skip to content
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

models: adds index on version_id and bucket_id #304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jrcastro2
Copy link
Contributor

  • adds alembic recipe
  • closes zenodo/rdm-project#640

@slint
Copy link
Member

slint commented Jan 25, 2024

Apparently MySQL anyways automatically creates indices on FKs and dropping the index is not allowed.

@jrcastro2 can you look into if it's possible to conditionally in the downgrade recipe to not drop the index if we're on MySQL? If this isn't easy then we can remove mysql from the test matrix and open an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants