From b5bb867d9ceacd9d965e48f422433e4e16897ebc Mon Sep 17 00:00:00 2001 From: Froidefond Julien Date: Fri, 27 Mar 2026 11:08:56 +0100 Subject: [PATCH] fix: retire CONCURRENTLY des CREATE INDEX (incompatible avec transactions sqlx) Co-Authored-By: Claude Opus 4.6 (1M context) --- infra/migrations/0066_add_authors_index.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/migrations/0066_add_authors_index.sql b/infra/migrations/0066_add_authors_index.sql index 39d6c0b..2559f52 100644 --- a/infra/migrations/0066_add_authors_index.sql +++ b/infra/migrations/0066_add_authors_index.sql @@ -1,8 +1,8 @@ -- GIN index for efficient array lookups on books.authors -CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_books_authors_gin ON books USING GIN (authors); +CREATE INDEX IF NOT EXISTS idx_books_authors_gin ON books USING GIN (authors); -- Index on author column for legacy single-author field -CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_books_author ON books (author) WHERE author IS NOT NULL AND author != ''; +CREATE INDEX IF NOT EXISTS idx_books_author ON books (author) WHERE author IS NOT NULL AND author != ''; -- GIN index on series_metadata.authors -CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_series_metadata_authors_gin ON series_metadata USING GIN (authors); +CREATE INDEX IF NOT EXISTS idx_series_metadata_authors_gin ON series_metadata USING GIN (authors);