Skip to content

fix: rebasing migrations#10666

Merged
mattkrick merged 1 commit intomasterfrom
fix/db-rebase-migrations
Jan 10, 2025
Merged

fix: rebasing migrations#10666
mattkrick merged 1 commit intomasterfrom
fix/db-rebase-migrations

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
7 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