Change8

v1.0.0-beta.16

📦 drizzle-ormView on GitHub →
5 features🐛 1 fixes🔧 4 symbols

Summary

This beta release overhauls the Drizzle ORM migration infrastructure, fixing a critical regression related to timestamp precision during format conversion. It introduces migration table versioning and new commutativity checks via `drizzle-kit check` for improved team workflows.

Migration Steps

  1. If upgrading from the old journal format to v3 folders, run `drizzle-kit up` first to convert the folder structure.
  2. Run `migrate` after upgrading to beta.16; it will automatically detect the old migration table schema (version 0), add necessary columns, and backfill data.

✨ New Features

  • Significantly improved migration infrastructure.
  • Introduced migration table versioning (Version 0 to Version 1 schema).
  • New migration tracking mechanism matching by full folder name instead of timestamps.
  • New commutativity checks via `drizzle-kit check` to detect non-commutative migrations when working in teams (available for PostgreSQL and MySQL).
  • Migration snapshot metadata changed from `prevId: string` to `prevIds: string[]` to enable proper DAG representation of migration history.

🐛 Bug Fixes

  • Fixed a regression introduced in beta.13 (persisting through beta.15) where migration re-application occurred due to millisecond vs. second precision mismatch between old journal format and new v3 folder structure.

Affected Symbols