Skip to content

[Kit]: Skip commutativity check on drizzle-kit migrate - #6138

Open
MHJahanbakhsh wants to merge 1 commit into
drizzle-team:betafrom
MHJahanbakhsh:fix/migrate-skip-commutativity-check-5777
Open

[Kit]: Skip commutativity check on drizzle-kit migrate#6138
MHJahanbakhsh wants to merge 1 commit into
drizzle-team:betafrom
MHJahanbakhsh:fix/migrate-skip-commutativity-check-5777

Conversation

@MHJahanbakhsh

@MHJahanbakhsh MHJahanbakhsh commented Aug 17, 2026

Copy link
Copy Markdown

Summary

  • Remove the unconditional commutativity check from drizzle-kit migrate. The check still runs on generate (where it can prevent conflicting snapshots) and on drizzle-kit check (where users opt into it).
  • --ignore-conflicts remains accepted on migrate for backward compatibility.

Fixes #5777

Test plan

  • drizzle-kit migrate no longer runs checkHandler / detectNonCommutative before applying migrations
  • drizzle-kit generate still runs the commutativity check
  • drizzle-kit check still runs the commutativity check
  • drizzle-kit migrate --ignore-conflicts still parses

migrate ran the same snapshot commutativity analysis as generate/check on
every invocation, which can take minutes on large migration histories even
when nothing is pending. Keep the check on generate and drizzle-kit check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant