Commit b90f061
adam
py-tortoise-orm: updated to 1.1.6
1.1.6
Fixed
Migration generator now correctly orders AddIndex, RemoveIndex, AddConstraint, RemoveConstraint operations when adding/removing a field to a model that is used in an index or constraint.
CreateModel migrations now include DEFAULT clauses for fields with db_default set. Previously only AddField emitted defaults correctly.
AlterField migrations now detect max_length changes (e.g. VARCHAR(32) → VARCHAR(64)) and emit the correct ALTER statements across all backends.
backward_relations=False in PydanticMeta now only excludes unannotated backward relations — fields explicitly annotated with ReverseRelation in the model class body are preserved.
MySQL session time_zone now uses the configured timezone instead of always defaulting to +0:00 when use_tz=True.
Plus sign (+) in database URL passwords is no longer incorrectly decoded as a space.1 parent c93c4c5 commit b90f061
2 files changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments