undo schema migration!

I recently started using turso and drizzle, I sometimes make schema mistakes, such as "'SQLite error: Cannot add a NOT NULL column with default value NULL'", I generate the schema, with npm run generate, but when I run npm run migrate I get the error. is there a way to delete the last file that drizzle generates when I run, npm run generate? My current solution is going into my migration's folder and deleting the last generated files, any advice or recommendations are greatly appreciated!
3 Replies
Angelelz
Angelelz12mo ago
Yes, there is drop command. Please don't manually delete from the migrations folder
Angelelz
Angelelz12mo ago
Drizzle ORM - next gen TypeScript ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
nadim7128
nadim7128OP12mo ago
@Angelelz Thank you!
Want results from more Discord servers?
Add your server