tmcw
tmcw
Explore posts from servers
DTDrizzle Team
Created by tmcw on 8/7/2023 in #help
Is there a simpler way to get an enum type than (typeof enumType)["enumValues"][number]?
Pretty quick question (and maybe quick answer) - we have this pattern in a few places and it looks a bit verbose.
7 replies
DTDrizzle Team
Created by tmcw on 5/5/2023 in #help
I ran introspect:pg to initialize my schema, then created a new migration. How should I deploy this?
The remote database, right now, doesn't have the drizzle.__drizzle_migrations table. It'd be nice to have a way to know that the old migrations - the ones that were generated by introspect:pg and just reflect the existing state of the database - won't run. Is this the right way to look at it? Thanks!
17 replies
DTDrizzle Team
Created by tmcw on 4/10/2023 in #help
drizzle-kit doesn't pull foreign keys from supabase/postgres?
It's hard to really turn this into a proper bug report because, honestly, with Supabase there could be many root causes, but basically, when I use drizzle-kit to introspect my Supabase setup, it works pretty well, except: 1. It doesn't include any foreign keys 2. It doesn't include anything that's in the auth schema I think #2 is a known issue? And something that I'll avoid as soon as we switch off of Supabase. But #1 might be something that's new to the drizzle team, so noting it here!
3 replies