drizzle-orm icon indicating copy to clipboard operation
drizzle-orm copied to clipboard

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

Open codePassion-dot opened this issue 1 year ago • 1 comments

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 avatar May 18 '24 01:05 codePassion-dot

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

codePassion-dot avatar May 18 '24 01:05 codePassion-dot

This should be fixed in [email protected]. If the issue persists, feel free to reopen it!

AndriiSherman avatar May 22 '24 14:05 AndriiSherman

Confirmed upgrading to 0.21.3 fixed this issue for us. Thank you @AndriiSherman

luskin avatar Jul 26 '24 19:07 luskin