drizzle-kit@0.30.3

drizzle-team/drizzle-ormdrizzle-kit@0.30.3Jan 27, 2025by github-actions[bot]

AI Summary

This release improves SingleStore support in drizzle-kit by handling cases where the database doesn't support certain DDL statements, now automatically initiating table recreation with data transfer. Additionally, a bug was fixed where index names matching generated names would become empty and cause type errors.

Key Highlights

  • SingleStore push and generate now handle unsupported DDL statements by detecting limitations and initiating table recreation with data transfer
  • Fixed bug where index names matching generated names would be empty causing type errors (Issue #3420)

New Features

  • SingleStore schema push/generate now handles unsupported DDL statements via automatic table recreation with data transfer
  • Fixed index naming bug that caused empty index names and type errors when index name matched generated name

Full Release Notes

# SingleStore `push` and `generate` improvements

As SingleStore did not support certain DDL statements before this release, you might encounter an error indicating that some schema changes cannot be applied due to a database issue. Starting from this version, drizzle-kit will detect such cases and initiate table recreation with data transfer between the tables

# Bug fixes

- [[BUG] If the index name is the same as the generated name, it will be empty and a type error will occur](https://github.com/drizzle-team/drizzle-orm/issues/3420)