- Added
BinaryField
for storing binary objects (bytes
). - Changed
TextField
to useLONGTEXT
for MySQL to allow for larger than 64KB of text. - De-duplicate index if specified on both
index=true
and as part ofindexes
- Primary Keyed
TextField
is marked as deprecated.
We can't guarnatee that it will be properly indexed or unique in all cases. - One can now disable the backwards relation for FK/O2O relations by passing
related_name=False
- One can now pass a PK value to a generated field, and Tortoise ORM will use that as the PK as expected.
This allows one to have a model that has a autonumber PK, but setting it explicitly if required.