v1.0.0-beta.12
Breaking Changes📦 drizzle-ormView on GitHub →
⚠ 1 breaking✨ 2 features🐛 11 fixes🔧 9 symbols
Summary
This release introduces detailed schema error reporting for PostgreSQL and SQLite dialects during schema generation and push operations. It also resolves several critical bugs related to crypto module resolution, SQL generation, and configuration handling.
⚠️ Breaking Changes
- The `.generatedAlwaysAs()` method now strictly accepts only `sql`...`` or `() => sql`...`` as arguments.
✨ New Features
- PostgreSQL dialect now reports schema errors like duplicate table/column/enum names, duplicate enum values, and duplicate privilege/role names in TS files during `generate` and `push` commands.
- SQLite dialect now reports schema errors like duplicate column/FK/index/PK names and tables with no columns in TS files during `generate` and `push` commands.
🐛 Bug Fixes
- Fixed `drizzle-kit generate` silently exiting with code 1.
- Resolved issues related to resolving the `node:crypto` module in non-Node environments (like React Native/Bun).
- Fixed problem with backslash handling in check constraints.
- Fixed `drizzle-kit up` throwing the error "Cannot convert undefined or null to object".
- Fixed `bun-sqlite` `db.get(...)` returning data in array mode instead of object mode.
- Fixed `effect-postgres` driver ignoring the cache config option.
- Fixed types not allowing placeholder usage in `onConflictDoUpdate.set`.
- Fixed alias not working correctly with views in PostgreSQL.
- Fixed `select()...for("...")` using qualified table names when specifying `of: table`.
- Fixed `arrayContains()` generating incorrect SQL parameters for PostgreSQL, preventing "operator does not exist: text[] @> record" errors.
- Fixed parameters not being inlined for single-table selects.