This produces the following migration as a prepared statement using $1
DROP INDEX IF EXISTS "active_credential_idx";--> statement-breakpoint
CREATE UNIQUE INDEX IF NOT EXISTS "active_credential_idx" ON "credential" USING btree (user_id,active) WHERE "credential"."active" = $1;
Expected behavior
It should produce a migration file like this:
DROP INDEX IF EXISTS "active_credential_idx";--> statement-breakpoint
CREATE UNIQUE INDEX IF NOT EXISTS "active_credential_idx" ON "credential" USING btree (user_id,active) WHERE "credential"."active" = true;
What version of
drizzle-orm
are you using?0.31.1
What version of
drizzle-kit
are you using?0.22.2
Describe the Bug
This produces the following migration as a prepared statement using
$1
Expected behavior
It should produce a migration file like this:
Environment & setup
No response