drizzle-kit check command lets you check consistency of your generated SQL migrations history.
Thatβs extremely useful when you have multiple developers working on the project and
altering database schema on different branches - read more about migrations for teams.
drizzle-kit check command requires you to specify both dialect and database connection credentials,
you can provide them either via drizzle.config.ts config file or via CLI options
With config file
As CLI options
Multiple configuration files in one project
You can have multiple config files in the project, itβs very useful when you have multiple database stages or multiple databases on the same project:
npm
yarn
pnpm
bun
Extended list of configurations
We recommend configuring drizzle-kit through drizzle.config.ts file,
yet you can provide all configuration options through CLI if necessary, e.g. in CI/CD pipelines, etc.
dialect
required
Database dialect you are using. Can be postgresql,mysql or sqlite