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
exportconstusers=schema.table('users',{id: text('id').primaryKey(),/* removed for brevity */dietaryRestrictions: text('dietary_restrictions').array().notNull().default([]),allergies: text('allergies').array().notNull().default([]),meals: boolean('meals').array().notNull().default([false,false,false])});
the migration schema provided was:
CREATETABLEIF NOT EXISTS "auth"."users" (
"id"textPRIMARY KEYNOT NULL,
--> removed for brevity"dietary_restrictions"text[] DEFAULT NOT NULL,
"allergies"text[] DEFAULT NOT
"meals"boolean[] DEFAULT false,false,false NOT NULL,
);
The default values given for arrays are not correct.
What version of
drizzle-orm
are you using?0.31.2
What version of
drizzle-kit
are you using?0.22.8
Describe the Bug
For the given schema in typescript:
the migration schema provided was:
The default values given for arrays are not correct.
Expected behavior
The migration sql must output:
Environment & setup
bun v1.1.18, linux x86
The text was updated successfully, but these errors were encountered: