Updates
- Disabled default codec type selectors for custom columns (fixes #5711)
- Сallback type overload for codec selector in custom pg columns (
codec: (config) => config?.withTimeZone ? 'timestamptz' : 'timestamp') - Extended list of postgis types for codecs (improvement for #5711)
- Updated codecs:
geometry->geometry(point),geometry:tuple->geometry(point):tuple - Switched PG transactions from class properties back to class methods (fixes #5709)
- Updated
AWS Data Apicodecs, removed query typings, improved input param mapping - Removed prepared query
typingsfield from all builders - Added
columnargument toCastParam,CastArrayParamcodecs
Migration updates in SQLite
- Added migration conflict detection for SQLite. When migration history has multiple open branches,
drizzle-kit generatenow checks whether those branches can be merged safely before creating the next migration. This helps catch cases where two migrations were created from the same parent and then changed the same SQLite object in incompatible ways, for example two branches changing the same table, index, or view.
npx drizzle-kit generate- If the conflict is expected and you want to continue anyway, pass
--ignore-conflictsto skip the conflict check for that command.
npx drizzle-kit generate --ignore-conflicts
npx drizzle-kit check --ignore-conflicts- Added proper SQLite migration tree merging. New snapshots now collect all open leaf snapshot IDs and write them as parents, instead of keeping only one latest parent. This means a new migration generated after branching can merge all open leaves and use the combined SQLite state for the next snapshot diff.
{
"prevIds": ["first-open-leaf-id", "second-open-leaf-id"]
}- Fixed
DrizzleQueryErrorandTransactionRollbackErrorconstructors to properly set the error name for better instanceof checks - Fixed error handling in aws-data-api to properly show database error messages