jaslr
DTDrizzle Team
•Created by jaslr on 5/13/2024 in #help
Should drizzle-kit introspect produce the same content as my existing schema?
Thanks for the reply @Andrew Sherman I have fixed the casing now. However my pulled schema has a lot of exports such as:
which just aren't in my original schema. Could this be the product of a migration that I could've erroneously started and if so, can I roll back or quash that migration?
8 replies
DTDrizzle Team
•Created by jaslr on 5/13/2024 in #help
Should drizzle-kit introspect produce the same content as my existing schema?
I'm trying to find a way to reproduce this, in the meantime, is this the correct workflow for updating my schema:
1. Update schema within
server\schema.ts
where this is opening lines prior to table definitions:
and because I am developing straight into supabase, I run drizzle-kit push
, where this is drizzle.config.ts
:
2. I then run drizzle-kit introspect
and my file in drizzle\schema.ts
has a whole bunch of things NOT in my server\schema.ts
such as:
note the exports aal_level
, code_challenge_method
, factor_status
also the table names in my original schema.ts are camelCase but when i introspect they're snake_case 🤷♂️
This is definitely user error, but I'm not sure how to get around it.8 replies