Nick
Explore posts from serversDTDrizzle Team
•Created by Nick on 9/18/2024 in #help
Sharing a database - Keeps trying to drop other tables when pushing tables with the different prefix
So I've got tables with the prefix
chris-woodward-gallery
and cars-under-20k
.
I was learning, and still am, so want to make the use of vercel's free db.
Problem is I've set up my schema to prefix the tables, and removed any reference to the chris-woodward-gallery
variant, but when I push it still say it's trying to drop those tables.
As a big-old-noob I'm struggling to debug this tbh:
2 replies
DTDrizzle Team
•Created by Nick on 7/23/2024 in #help
Querying and typing a many to many relationship?
So I'm enjoying using drizzle, but querying a many to many relationship seems a bit verbose, which makes me think I'm doing it wrong. It's also making using
drizzle-zod
a bit confusing:
So I've set up my tables, user
and profile
I'm then not sure how to extend the User
schema with its usersToProfiles
and its Profiles
:
1 replies
DTDrizzle Team
•Created by Nick on 6/18/2024 in #help
Trying to get Drizzle, Lucia and Vercel-postress to work together (no changes to schema detected)
Hi! I'm new to drizzle and lucia and am just having a problem setting up both with vercel-postgres:
I'm creating an adapter for Lucia in my
schema.ts
:
export const createAdapter = (db: PgDatabase<any, any, any>) => new DrizzlePostgreSQLAdapter(db, sessionTable, userTable);
and using it in db/index.ts
. But this doesn't allow drizzle to see the session or user schemas (no changes are detected when I drizzle-kit push
)
Any ideas? Sorry if it's obvious!
Nick7 replies