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
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.
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 nowDrizzle ORM - Config Reference
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
That works, thanks.