Skip to content

drizzle/stale-migrations

Runs drizzle-kit generate and fails when it creates a migration.

Part of the drizzle configuration, at the recommended level. It runs at the push stage, once per scope. It runs drizzle-kit.

A schema change with no migration works only on the machine that pushed it.

Run drizzle-kit generate and commit the migration.

A schema change with no new migration reports drift. Run drizzle-kit generate, review the migration, and commit it.

Turn it off for some files, or one of its lint rules, with a reason:

gspot ignore drizzle/stale-migrations --paths "<glob>" --reason "<why>"
gspot ignore drizzle/stale-migrations --rule <rule> --reason "<why>"