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: rebasing migrations #10666

Merged
merged 1 commit into from
Jan 10, 2025
Merged

fix: rebasing migrations #10666

merged 1 commit into from
Jan 10, 2025

Conversation

mattkrick
Copy link
Member

Description

Our new migrator is really strict & won't run any migrations if it detects that previous migration files do not exist.
So, for rebasing I came up with the strategy of changing the name of the table. That way the migrator assumes no migrations have run yet & won't throw any errors. Then, inside the migration we delete the old _migration table.

Signed-off-by: Matt Krick <matt.krick@gmail.com>
@github-actions github-actions bot requested a review from tianrunhe January 10, 2025 23:10
@mattkrick mattkrick merged commit d174162 into master Jan 10, 2025
8 checks passed
@mattkrick mattkrick deleted the fix/db-rebase-migrations branch January 10, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant