drizzle-team / drizzle-kit-mirror

Docs and issues repository for drizzle-kit
287 stars 16 forks source link

[BUG] generate postgresql not detecting removed NOT NULL constraint #412

Open alanhamlett opened 1 month ago

alanhamlett commented 1 month ago

I changed the schema to remove .notNull() from 2 columns on a table (varchar and integer) but no changes are detected.

Even adding .notNull() to the columns in my schema then running drizzle-kit generate detects no changes. It's like null constraints are now skipped when generating migrations. It was working in the previous version of drizzle-kit, broke after upgrading drizzle-kit to v0.21.2.

davidgomes commented 1 month ago

I can confirm that I have just reproduced this on 0.21.2.