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.
What to do
Section titled “What to do”Run drizzle-kit generate and commit the migration.
Example
Section titled “Example”A schema change with no new migration reports drift. Run drizzle-kit generate, review the migration, and commit it.
Turn it off
Section titled “Turn it off”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>"