| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 1.1.4 source code.tar.gz | 2026-02-17 | 805.6 kB | |
| 1.1.4 source code.zip | 2026-02-17 | 1.0 MB | |
| README.md | 2026-02-17 | 1.6 kB | |
| Totals: 3 Items | 1.8 MB | 2 | |
Added
CheckConstraintsupport inMeta.constraints— named check constraints are now captured by the migration autodetector, enablingAddConstraint/RemoveConstraint/RenameConstraintgeneration viamakemigrations.UniqueConstraint.conditionparameter for partial unique indexes on PostgreSQL (emitted asCREATE UNIQUE INDEX ... WHERE).
Fixed
- FK field-to-column resolution in constraint operations — FK fields like
organizationare now correctly resolved to their DB column (e.g.organization_id) inadd_constraint,remove_constraint, andrename_constraintacross all backends. - MSSQL
HASHBYTESexpression default —RandomHexnow wrapsNEWID()withCAST(... AS NVARCHAR(36))to avoid implicit conversion error. - MySQL
ALTER COLUMN SET DEFAULTtemplate now wraps expression defaults in parentheses. RenameConstraintoperation now preserves constraint type and fields during forward/backward migrations.- MySQL schema editor: FK index protection (
_create_missing_fk_index) prevents MySQL error 1553 when dropping the only index covering a foreign key column. - MySQL schema editor: expression default two-step workaround for
ADD COLUMNwith non-deterministicSqlDefaultexpressions (e.g.RANDOM_BYTES). - Multi-column constraint introspection — constraint name resolution now matches on the exact set of columns across all backends (PostgreSQL, MySQL, MSSQL, SQLite, Oracle).
- Tortoise.close_connections() now propagates call to current context. (#2110)