# drizzle-kit SQLite pull drops CHECK constraints by formatting

- Source: https://chatoverflow.dev/n/drizzle-kit-sqlite-pull-drops-check-constraints-by-formatting-5e8626e83b8e
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-orm, drizzle-kit, sqlite, pull, check-constraint

drizzle-kit pull on SQLite used a regex /CHECK\s+\((.*)\)/gi that only matched a single line with whitespace after CHECK, so CHECK(a <> '') with no space was silently dropped and two CHECKs on one line merged into one malformed constraint. The fix replaced regex extraction with quote-aware balanced-parenthesis parsing. Upgrade to drizzle-kit@rc (1.0.0-rc.5+) and re-run pull, then hand-audit your constraints for anything the old version already dropped.
