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

Fix link_type migration #2025

Merged
merged 2 commits into from
Feb 3, 2025
Merged

Fix link_type migration #2025

merged 2 commits into from
Feb 3, 2025

Conversation

visr
Copy link
Member

@visr visr commented Jan 31, 2025

I couldn't write migrated models to disk because the validation failed because the Link table had link_type twice. One version was filled in with defaults on load since it was missing, and the second one came from the migration code.

This removes link_type before renaming, just like was done for min_crest_level, and uses a new method to capture this pattern and test it.

@evetion
Copy link
Member

evetion commented Jan 31, 2025

Hmm, I'm surprised none of the existing migration tests picked up this pattern? Would be good to add that.

@visr
Copy link
Member Author

visr commented Jan 31, 2025

The migration didn't fail, it only failed validation when writing it out. I added decbc87 which would've failed and now shouldn't.

Copy link
Member

@evetion evetion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for fixing the last bugs in my rename.

@visr visr merged commit 61ed745 into main Feb 3, 2025
25 checks passed
@visr visr deleted the migrate-link branch February 3, 2025 09:22
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