Is there a way to have Prototype / Push run without confirmation?

I have some integration tests that need to fill out a new database with the current schema. Currently I'm programatically running drizzle-kit push:pg but it requires a keyed confirmation before it pushes the schema. Is there a more direct way to run it programatically or some secret flag to disable the prompt? Cheers!
3 Replies
BumontheRun
BumontheRun5mo ago
Also curious on this. Looking for a good way to create a new db from the current schema and seed each time for integration tests.
Mykhailo
Mykhailo5mo ago
Hey @BumontheRun @Jeremy. Make sure to off strict parameter in your drizzle.config.ts file. https://orm.drizzle.team/kit-docs/config-reference#strict If we speak about data loss confirmation then it is not possible to skip now
Drizzle ORM - Config Reference
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
BumontheRun
BumontheRun5mo ago
That works, thanks.
Want results from more Discord servers?
Add your server