drizzle-kit
0.31.11 · 21 Sep 2026MIT42.7M / weekRepositoryHomepagenpmAtom feed
0.31.11 is the newest release of 0.31.x.
In short
1 security6 new2 fixed
- Security
Release note
Features and improvements
Enum DDL improvements
For situations where you drop an enum value or reorder values in an enum, there is no native way to do this in PostgreSQL. To handle these cases, drizzle-kit used to:
Change the column data types from the enum to text
Drop the old enum
Add the new enum
Change the column data types back to the new enum
However, there were a few scenarios that weren’t covered: PostgreSQL wasn’t updating default expressions for columns when their data types changed
Therefore, for cases where you either change a column’s data type from an enum to some other type, drop an enum value, or reorder enum values, we now do the following:
Change the column data types from the enum to text
Set the default using the ::text expression
Drop the old enum
Add the new enum
Change the column data types back to the new enum
Set the default using the ::<new_enum> expression
esbuild version upgrade
For drizzle-kit we upgraded the version to latest (0.25.2), thanks @paulmarsicloud
Bug fixes
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.