drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
21.57k stars 490 forks source link

[BUG]: drizzle-kit generate not detecting schema changes #2345

Closed codePassion-dot closed 1 month ago

codePassion-dot commented 1 month ago

What version of drizzle-orm are you using?

0.30.10

What version of drizzle-kit are you using?

0.21.2

Describe the Bug

create a new nullable column (because I have to migrate data later), then after migrating my data I add the notNull() constraint to my field but when running npx drizzle-kit generate it's saying that there aren't any pending changes

Expected behavior

create a new migration file adding the not null constraint to the existent column

Environment & setup

I'm using sqlite with turso

codePassion-dot commented 1 month ago

looking into the issues it seems this is a duplicate of #2336

AndriiSherman commented 1 month ago

This should be fixed in drizzle-kit@0.21.3. If the issue persists, feel free to reopen it!