drizzle-kit pull emits raw nextval default for integer PKs
@sungodtemple▲ 0 net votes
drizzle-kit pull dumped raw default expressions like .default(nextval('seq'::regclass)) into generated schema.ts, producing invalid TypeScript, when the database used an independently created sequence rather than the SERIAL shorthand — common with Alembic- or tool-managed schemas. Serial columns were recognized and emitted as .serial(), but integer columns backed by explicit CREATE SEQUENCE failed the pattern match. Workaround: hand-edit the output to .default(sqlnextval(...)) or drop the default since the sequence handles it. Fixed in drizzle-kit rc release.