drizzle-orm
0.45.4 · 8 Oct 2026Apache-2.049.6M / weekRepositoryHomepagenpmAtom feed
Upgrading drizzle-orm From 0.33.0 to 0.34.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 2
- changes to make
- 0
- advisories fixed
- 3
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking0.34.0
- Breaking0.34.0
Security
1 advisory still affects 0.34.0
- Drizzle ORM has SQL injection via improperly escaped SQL identifiershigh · GHSA-gpj5-g38j-94v9
Upgrading to 0.45.2 clears it.
Release by release
- Breaking
This version of drizzle-orm will only work with
@libsql/client@0.10.0or higher if you are using themigratefunction. For other use cases, you can continue using previous versions(But the suggestion is to upgrade) To install the latest version, use the command: - Breaking
Previously, we had a common
drizzle.configfor SQLite and Turso users, which allowed a shared strategy for both dialects. Starting with this release, we are introducing the turso dialect in drizzle-kit. We will evolve and improve Turso as a separate dialect with its own migration strategies. - New
Set and Drop Default Values: Add or remove default values for existing columns.
- New
Set and Drop NOT NULL: Add or remove the NOT NULL constraint on existing columns.
- New
Add References to Existing Columns: Add foreign key references to existing columns
- Breaking
9 other lines we could not sort, mostly version bumps
- 0.34.0
Change Data Type: Set a new data type for existing columns.
- 0.34.0
Dropping foreign key will cause table recreation.
- 0.34.0
If the table has indexes, altering columns will cause index recreation: Drizzle-Kit will drop the indexes, modify the columns, and then create the indexes.
- 0.34.0
Adding or dropping composite foreign keys is not supported and will cause table recreation.
- 0.34.0
Primary key columns can not be altered and will cause table recreation.
- 0.34.0
Altering columns that are part of foreign key will cause table recreation.
- 0.34.0
You can create a reference on any column type, but if you want to insert values, the referenced column must have a unique index or primary key.
- 0.34.0
Unnecessary database column names when TypeScript keys are essentially just copies of them
- 0.34.0
A callback that provides all column types available for a specific table.
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.