Problem with AT TIME ZONE
When running drizzle-kit studio, I got error with following generated schema file (from supabase):
10 Replies
@Sillvva This problem is when i use
db pull
, the generated file contains above error.The error above is pointing at an issue in the schema file, because
.default((now() AT TIME ZONE 'utc'::text))
is not valid JavaScript. It's a JS syntax error starting at the AT
.@Sillvva Correct. It's the issue with generated schema.ts file after i run drizzle-kit pull
If that's exactly how the schema was generated, then it is likely a bug.
@Andrew Sherman @alexblokh
@Sillvva Yes, you can reproduce by:
- Create column with timezone set to utc as above.
- drizzle-kit introspect:pg
got it, we will fix it
Many related errors. Drizzle Studio is generating a schema for every schema in supabase. Is this intentional?
Thanks for pointing out. Currently i can't open Studio from the generated supabase schema though.
сс @⚡Z.E.U.S⚡