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

bug: fix Tokenserver migrations #1282

Merged
merged 2 commits into from
Apr 19, 2022
Merged

Conversation

ethowitz
Copy link
Contributor

Description

Migrations were previously failing in GCP because the services table
already exists in the database. To rectify this, we needed to change the
CREATE TABLE statements to CREATE TABLE IF NOT EXISTS. We also had
to change any INSERT statements to INSERT IGNORE statements.

Testing

I tested this by reverting all the migrations, manually adding the tables and sync-1.1 and sync-1.5 services, and running the migrations. The migrations should complete with no errors.

Migrations were previously failing in GCP because the `services` table
already exists in the database. To rectify this, we needed to change the
`CREATE TABLE` statements to `CREATE TABLE IF NOT EXISTS`. We also had
to change any `INSERT` statements to `INSERT IGNORE` statements.
@ethowitz ethowitz requested a review from a team April 19, 2022 18:09
@ethowitz ethowitz merged commit 4c64c1c into master Apr 19, 2022
@ethowitz ethowitz deleted the bug/fix-tokenserver-migrations branch April 19, 2022 18:59
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