Download Latest Version 1.1.7 source code.tar.gz (821.1 kB)
Email in envelope

Get an email when there's a new version of Tortoise ORM

Home / 1.1.4
Name Modified Size InfoDownloads / 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

  • CheckConstraint support in Meta.constraints — named check constraints are now captured by the migration autodetector, enabling AddConstraint/RemoveConstraint/RenameConstraint generation via makemigrations.
  • UniqueConstraint.condition parameter for partial unique indexes on PostgreSQL (emitted as CREATE UNIQUE INDEX ... WHERE).

Fixed

  • FK field-to-column resolution in constraint operations — FK fields like organization are now correctly resolved to their DB column (e.g. organization_id) in add_constraint, remove_constraint, and rename_constraint across all backends.
  • MSSQL HASHBYTES expression default — RandomHex now wraps NEWID() with CAST(... AS NVARCHAR(36)) to avoid implicit conversion error.
  • MySQL ALTER COLUMN SET DEFAULT template now wraps expression defaults in parentheses.
  • RenameConstraint operation 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 COLUMN with non-deterministic SqlDefault expressions (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)
Source: README.md, updated 2026-02-17