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
I am using neon's PostgreSQL db, which is connected to my Directus instance.
I want to query directly from db using drizzle, so that i don't have to deploy Directus,
Currently i am running Directus locally on docker with neon db.
What i have done
Generated schema from existing db using drizzle-kit introspect:pg
Error
In the generated schema and SQL file
Default value is causing error
--> statement-breakpointCREATETABLEIF NOT EXISTS "directus_roles" (
"id" uuid PRIMARY KEYNOT NULL,
"name"varchar(100) NOT NULL,
"icon"varchar(30) DEFAULT 'supervised_user_circle'::character varying NOT NULL,
"description"text,
"ip_access"text,
"enforce_tfa"boolean DEFAULT false NOT NULL,
"admin_access"boolean DEFAULT false NOT NULL,
"app_access"boolean DEFAULT true NOT NULL
);
I have around 50 tables now, and schema will be changing as the app grows
and this issue is almost in every table.
And Every time i generate schema it generates wrong code.
Expected behavior
No response
Environment & setup
linux 6.7.8.arch1-1
Hyprland
EndeavourOS
The text was updated successfully, but these errors were encountered:
What version of
drizzle-orm
are you using?0.30.0
What version of
drizzle-kit
are you using?0.20.14
Describe the Bug
Context
I am using neon's PostgreSQL db, which is connected to my Directus instance.
I want to query directly from db using drizzle, so that i don't have to deploy Directus,
Currently i am running Directus locally on docker with neon db.
What i have done
drizzle-kit introspect:pg
Error
In the generated schema and SQL file
I have around 50 tables now, and schema will be changing as the app grows
and this issue is almost in every table.
And Every time i generate schema it generates wrong code.
Expected behavior
No response
Environment & setup
linux 6.7.8.arch1-1
Hyprland
EndeavourOS
The text was updated successfully, but these errors were encountered: