adding default to array of text creates invalid migrations

values: text('values').array().notNull().default(['a', 'b'])

generates:
ALTER TABLE "test" ALTER COLUMN "values" SET DEFAULT a,b;

Should be:
ALTER TABLE "test" ALTER COLUMN "values" SET DEFAULT ARRAY['a', 'b'];


"drizzle-orm": "^0.28.3",
"drizzle-kit": "^0.19.13",
"pg": "^8.11.3"
Was this page helpful?