Change8

drizzle-kit@0.31.0

📦 drizzle-orm
2 features🐛 3 fixes🔧 3 symbols

Summary

This release improves PostgreSQL Enum DDL migrations by ensuring column default expressions are correctly updated and upgrades esbuild to 0.25.2 to fix security vulnerabilities and bugs.

Migration Steps

  1. Run 'drizzle-kit generate' to produce new migration files if you have pending Enum changes (reordering or dropping values) to benefit from the improved DDL logic.

✨ New Features

  • Improved PostgreSQL Enum DDL handling: now correctly updates column default expressions when dropping or reordering enum values by casting through text types.
  • Upgraded internal esbuild dependency to version 0.25.2 to address security vulnerabilities.

🐛 Bug Fixes

  • Fixed 'Error on Malformed Array Literal' in PostgreSQL.
  • Fixed error when pulling indexes from a table with json/jsonb deep field indexes in PostgreSQL.
  • Resolved CVE-2024-24790 by upgrading esbuild from 0.19.7.

🔧 Affected Symbols

pgEnumdrizzle-kitesbuild