All Versions
125
Latest Version
Avg Release Cycle
-
Latest Release
-
Changelog History
Page 6
Changelog History
Page 6
-
v0.15.12 Changes
- โ Added
range
filter to supportbetween and
syntax
- โ Added
-
v0.15.11 Changes
- โ Added
ordering
option for modelMeta
class to apply default ordering
- โ Added
-
v0.15.10 Changes
- โฌ๏ธ Bumped requirements to cater for newer feature use (#282)
-
v0.15.9 Changes
- Alias Foreign Key joins as we can have both self-referencing and duplicate joins to the same table. This generates SQL that differentiates between which instance of the table to work with.
-
v0.15.8 Changes
- ๐
TextField
now recommends usage ofCharField
if wanting unique indexing instead of just saying "indexing not supported" .count()
now honours offset and limit- โ
Testing un-awaited
ForeignKeyField
as a boolean expression will automatically resolve asFalse
if it is None - Awaiting a nullable
ForeignKeyField
won't touch the DB if it isNone
- ๐
-
v0.15.7 Changes
- โก๏ธ
QuerySet.Update()
now returns the count of the no of rows affected. Note, that QuerySet.Delete()
now returns the count of the no of rows deleted.- Note that internal API of
db_connection.execute_query()
now returnsrows_affected, results
. (This is informational only) - Added
get_or_none(...)
as syntactic sugar forfilter(...).first()
- โก๏ธ
-
v0.15.6 Changes
- โ 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.
- โ Added
-
v0.15.5 Changes
- ๐จ Refactored Fields:
Fields have been refactored, for better maintenance. There should be no change for most users.
- More accurate auto-completion.
- Fields now contain their own SQL schema by dialect, which significantly simplifies adding field types.
describe_model()
now returns the DB type, and dialect overrides.JSONField
will now automatically usepython-rapidjson
as an accelerator if it is available.DecimalField
and aggregations on it, now behaves much more like expected on SQLite (#256)- Check whether charset name is valid for the MySQL connection (#261)
- 0๏ธโฃ Default DB driver parameters are now applied consistently, if you use the URI schema or manual.
-
v0.15.4 Changes
- Don't generate a schema if there is no models (#254)
- โ Emit a
RuntimeWarning
when a module has no models to import (#254) - ๐ Allow passing in a custom SSL context (#255)
-
v0.15.3 Changes
- โ Added
OneToOneField
implementation:
OneToOneField
describes a one to one relation between two models. It can be set from the primary side only, but resolved from both sides in the same way.describe_model(...)
now also reports OneToOne relations in both directions.Usage example:
.. code-block:: python3
event: fields.OneToOneRelation[Event] = fields.OneToOneField( "models.Event", on_delete=fields.CASCADE, related_name="address" )
- Prefetching is done concurrently now, sending all prefetch requests at the same time instead of in sequence.
- ๐ Enable foreign key enforcement on SQLite for builds where it was optional.
- โ Added