Open thedewpoint opened 3 months ago
looks to be the same issue opened here : https://github.com/drizzle-team/drizzle-orm/issues/860
Yep, it started to happen recently. (drizzle-kit 0.23, drizzle-orm 0.32) with pg
adapter.
Before:
CREATE INDEX IF NOT EXISTS ...
After:
CREATE INDEX CONCURRENTLY IF NOT EXISTS ...
and this causes error with npx drizzle-kit migrate
. Maybe pg
adapter uses transaction in the migrate
command?
I have created an index using drizzle
which generates the below SQL
When I run
migrate
using drizzle-kit, it gives the following error:error: CREATE INDEX CONCURRENTLY cannot run inside a transaction block
I can't find a way to disable transactions for this migration, my alternative is to not use concurrently which isn't a great option