Skip to content

Commit

Permalink
fix: don't create index concurrently in migration
Browse files Browse the repository at this point in the history
it doesn't work if the command is run in a migration, which is the case
when we use alembic.
  • Loading branch information
raphael0202 committed Sep 26, 2024
1 parent 2d8fbaf commit 96d3374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/007_add_logo_annotation_server_type_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

def migrate(migrator: Migrator, database: pw.Database, *, fake=False):
migrator.sql(
"CREATE INDEX CONCURRENTLY IF NOT EXISTS logo_annotation_server_type ON logo_annotation (server_type)"
"CREATE INDEX IF NOT EXISTS logo_annotation_server_type ON logo_annotation (server_type)"
)


Expand Down

0 comments on commit 96d3374

Please sign in to comment.