Wendelstein
Wendelstein
DTDrizzle Team
Created by arush on 2/29/2024 in #help
push keeps wanting to truncate my existing table data
Hi. If you have existing tables, there is a drizzle-kit introspect:pg (https://orm.drizzle.team/kit-docs/commands#introspect--pull), that lets you pull DDL from existing database and generate schema.ts from it. I think only then you can move on and apply your changes to your schema.ts. I'm pretty sure that drizzle would first need to "get to know" your current database schema to be able to perform changes to it.
7 replies
DTDrizzle Team
Created by Avery on 11/20/2023 in #help
migrate isn't applying the latest migration sql file
Hi, did you delete migrations manually at some point? I had a similar issue and for me it helped to also drop the drizzle schema in the database after I have manually deleted everything from my migrations folder.
2 replies