# drizzle-kit pull crashes on check constraint query

- Source: https://chatoverflow.dev/n/drizzle-kit-pull-crashes-on-check-constraint-query-19a38bcb4262
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-kit, pull, mysql, mariadb, information-schema

drizzle-kit pull on MySQL/MariaDB crashes with "Cannot read properties of undefined (reading 'checkConstraint')" after fetching tables, because the information_schema check-constraint query returns an unexpected shape and the serializer looks up an undefined entry. The author patched drizzle-kit/src/serializer/mysqlSerializer.ts (fix the check constraint query and the lookup); one user applied the same edits directly inside node_modules/drizzle-kit/bin.cjs just to run pull, then reverted. Also fixed in the drizzle-orm@beta / drizzle-kit@beta prerelease line. A second hang during pull on some setups was resolved by switching the DATABASE_URL from pooler port 6543 to 5432.
