Skip to content
Latchkey

Drizzle "No schema changes, nothing to migrate" in CI

drizzle-kit compares your schema.ts against the last snapshot in the migrations folder. When they match it prints "No schema changes, nothing to migrate." If you expected a new migration, drizzle-kit is not reading the schema you changed.

What this error means

drizzle-kit generate reports "No schema changes, nothing to migrate" and creates no file, even though you edited the schema and expected a migration.

drizzle-kit output
No schema changes, nothing to migrate 😴

Common causes

The config points at the wrong schema path

The schema glob in drizzle.config.ts does not include the file you edited, so generate diffs against an unchanged set.

The change is already captured in the latest snapshot

A previous generate already recorded the change, so there is genuinely nothing new to migrate.

How to fix it

Point the config at the right schema files

  1. Check the schema path in drizzle.config.ts covers your changed files.
  2. Use a glob if the schema spans multiple files.
  3. Re-run drizzle-kit generate.
drizzle.config.ts
export default defineConfig({
  dialect: 'postgresql',
  schema: './src/db/schema/*.ts',
  out: './drizzle',
});

Confirm the change is not already migrated

Inspect the newest snapshot under the out directory; if it already contains your change, no new migration is expected.

How to prevent it

  • Keep the schema config path in sync with where your tables are defined.
  • Use a glob for multi-file schemas so nothing is missed.
  • Review the latest snapshot when a change seems to be ignored.

Frequently asked questions

What causes "drizzle-kit "No schema changes""?
The schema glob in drizzle.config.ts does not include the file you edited, so generate diffs against an unchanged set.
How do I fix drizzle-kit "No schema changes"?
Point the config at the right schema files

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card