From 96d33744074c149aeb169d60d7e58e6dcb8ecc87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Thu, 26 Sep 2024 14:41:55 +0200 Subject: [PATCH] fix: don't create index concurrently in migration it doesn't work if the command is run in a migration, which is the case when we use alembic. --- migrations/007_add_logo_annotation_server_type_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/007_add_logo_annotation_server_type_index.py b/migrations/007_add_logo_annotation_server_type_index.py index cfab78d813..226c60b931 100644 --- a/migrations/007_add_logo_annotation_server_type_index.py +++ b/migrations/007_add_logo_annotation_server_type_index.py @@ -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)" )