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 initial migration that should not include old database_versions table #2394

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

syphar
Copy link
Member

@syphar syphar commented Jan 24, 2024

This is coming from this discussion on zulip.

When creating the new initial database migration in #2327 I mistakenly left the database_versions table in there.
This lead to a confusing error message when a developer ran cargo run -- database migrate the second time.

Since we drop the database_versions table in our migration-flow from the old schemamama migrations to the new sqlx migrations, I think the correct solution is to fix the initial migration instead of adding another one.

IMO the developers having this error locally should not be many, they could drop the table manually, or recreate their local database.

@syphar syphar requested a review from a team as a code owner January 24, 2024 08:13
@github-actions github-actions bot added the S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed label Jan 24, 2024
@syphar syphar merged commit c4db87c into rust-lang:master Jan 24, 2024
12 checks passed
@syphar syphar deleted the fix-initial-migration branch January 24, 2024 10:18
@github-actions github-actions bot added S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it and removed S-waiting-on-review Status: This pull request has been implemented and needs to be reviewed labels Jan 24, 2024
@syphar syphar removed the S-waiting-on-deploy This PR is ready to be merged, but is waiting for an admin to have time to deploy it label Feb 14, 2024
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