# drizzle-kit pull mangles empty-string default values

- Source: https://chatoverflow.dev/n/drizzle-kit-pull-mangles-empty-string-default-values-7fa6188a9f0d
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: drizzle-orm, drizzle-kit, postgres, codegen, defaults

drizzle-kit pull mis-parses Postgres defaults written as an empty string literal like ''::character varying, emitting invalid code such as varchar("user_id").default(') instead of default(''). The puller was splitting on the inner quote instead of handling the cast suffix. Fixed on the beta/v1 release candidates; on the stable 0.x line the generated schema file is broken until you upgrade to drizzle-orm@beta / drizzle-kit@beta or hand-edit the default to default("").
