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

Fixes #201 - fixeddb:migrate:with_data to compare data schema versions correctly #202

Closed

Conversation

sully7
Copy link
Contributor

@sully7 sully7 commented Jan 6, 2022

@sully7
Copy link
Contributor Author

sully7 commented Jan 6, 2022

also fixes #117

@ilyakatz
Copy link
Owner

ilyakatz commented Jan 6, 2022

#201 (comment)

@ilyakatz
Copy link
Owner

ilyakatz commented Aug 2, 2022

Cherry-picked in #218!

Thanks for the contributions

@ilyakatz ilyakatz closed this Aug 2, 2022
@reidab
Copy link
Contributor

reidab commented Nov 10, 2022

This ended up getting grouped in with changes from #211 in the 8.1.0 release, which was then completely reverted. This change is still needed.

@ilyakatz
Copy link
Owner

You're right, thanks for the bump. Just released on it's own via #235

@reidab
Copy link
Contributor

reidab commented Dec 12, 2022

@ilyakatz It doesn't look like that PR contains this fix. It's still pulling the current data version from ActiveRecord::Migrator.current_version instead of DataMigrate::DataMigrator.current_version here

current_data_version = ActiveRecord::Migrator.current_version
in that PR branch.

@ilyakatz
Copy link
Owner

hm, @reidab, would you be interested to create a PR?

reidab added a commit to reidab/data-migrate that referenced this pull request Dec 13, 2022
This is a re-creation of ilyakatz#202, which fixes a bug where the AR migration schema version is incorrectly referenced instead of the data migration version.

This causes data migrations be to be incorrectly re-run on an otherwise migrated database whenever the most recent schema version is lower than the most recent data version.
@reidab
Copy link
Contributor

reidab commented Dec 13, 2022

@ilyakatz done — here's a re-creation of this PR against the current head: #239

ilyakatz pushed a commit that referenced this pull request Dec 14, 2022
This is a re-creation of #202, which fixes a bug where the AR migration schema version is incorrectly referenced instead of the data migration version.

This causes data migrations be to be incorrectly re-run on an otherwise migrated database whenever the most recent schema version is lower than the most recent data version.
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.

3 participants