github drizzle-team/drizzle-kit-mirror v0.19.4
0.19.4

latest releases: v0.23.1, v0.23.0, v0.22.8...
14 months ago

🎉 Added support for UNIQUE constraints in PostgreSQL, MySQL, SQLite

Drizzle Kit now properly handles unique constraints for each dialect. In PostgreSQL and MySQL, they will be created as UNIQUE constraints, while in SQLite, they will be created as UNIQUE INDEX statements. According to the SQLite documentation, unique constraints are treated as unique indexes. Therefore, in the ORM and Kit, we handle unique constraints for SQLite as unique indexes

🎉 Collision detection for unique keys

We are introducing collision detection for unique keys as part of the new wave of drizzle-kit improvements. Currently, if drizzle-kit finds any unique constraints with the same name, you will receive a warning and identify the places where those names were defined by mistake. In the upcoming releases, we will further enhance this feature by adding collision checks for column names, other constraints, and more collisions and database-specific limitations.

image

Don't miss a new drizzle-kit-mirror release

NewReleases is sending notifications on new releases.