You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but the migration query is generated with a parameter like this:
CREATE UNIQUE INDEX IF NOT EXISTS "system_name_unique_idx" ON "group" USING btree ("name") WHERE "group"."type" = $1;
It's annoying because every time I want to generate a new migration this index is being dropped and then regenerated an the migration fails with: PostgresError: there is no parameter $1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
drizzle-kit: v0.22.7
drizzle-orm: v0.31.2
Hello
I defined an index with new version syntax using where:
but the migration query is generated with a parameter like this:
It's annoying because every time I want to generate a new migration this index is being dropped and then regenerated an the migration fails with:
PostgresError: there is no parameter $1
$1 should be 'SYSTEM' in my case instead.
Is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions