Skip to content

Commit 7dbc65f

Browse files
committed
Bump version: 1.1.7 → 1.1.8
1 parent 8c12adc commit 7dbc65f

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

CHANGELOG.rst

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,29 @@ Changelog
1313

1414
Added
1515
^^^^^
16-
- ``QuerySet.union()`` — SQL UNION query support for combining results from multiple QuerySets, including support for union across different models, ``union(all=True)`` for duplicates, ``order_by()``, ``limit()``, and ``count()``.
17-
- ``QuerySet.contains()`` method to check if an object exists in a queryset.
18-
- Added comprehensive EXPLAIN support for MySQL and PostgreSQL.
19-
- Built-in ``DomainNameValidator``, ``URLValidator``, and ``EmailValidator`` classes for common validation patterns. (#2162)
16+
- ``QuerySet.union()`` — SQL UNION query support for combining results from multiple QuerySets, including support for union across different models, ``union(all=True)`` for duplicates, ``order_by()``, ``limit()``, and ``count()``. (#2146)
17+
- feat: add ``postgresql://`` scheme as alias for asyncpg (#2154)
18+
- feat: add pre commit config and fix codespell issues (#2159)
19+
- feat: django compatibility field name (#2160)
20+
- feat: expose classmethod to build tortoise config (#2162)
21+
- ``QuerySet.contains()`` method to check if an object exists in a queryset. (#2163)
22+
- Added comprehensive EXPLAIN support for MySQL and PostgreSQL. (#2165)
23+
- Built-in ``DomainNameValidator``, ``URLValidator``, and ``EmailValidator`` classes for common validation patterns. (#2167)
2024

2125
Fixed
2226
^^^^^
2327
- ``MigrationRecorder`` now uses parameterized queries; fixes MariaDB/MySQL rejecting ISO-8601 ``applied_at`` values. (#2132)
28+
- fix(migrations): use parameterized queries in MigrationRecorder (#2153)
29+
- Applies model generics on relational fields functions (#2156)
30+
- fix: MSSQL connection left in busy state after insert (#2171)
2431
- ``db_default`` on ``ForeignKeyField``/``OneToOneField`` now propagates to the underlying ``<fk>_id`` column, so ``CREATE TABLE`` emits the ``DEFAULT`` clause for FK columns. (#2199)
32+
- Fix ``db_default`` on FK/O2O dropped during ``_init_relations`` (#2200)
2533
- ``MigrationRecorder`` no longer emits tortoise's own ``pk`` field ``DeprecationWarning`` when applying migrations; it now builds its bookkeeping model with ``primary_key=True``. (#2203)
2634
- ``QuerySet.count()`` now matches the limited query result for the LIMIT/OFFSET edge cases: it returns ``0`` (instead of a negative number) when ``offset()`` exceeds the total row count, and ``0`` (instead of the total) for ``limit(0)``. (#2208)
35+
- tests: cover Q inequality and unhashable behavior (#2214)
2736
- Field declarations on models now resolve to their concrete type (e.g. ``CharField[str]``) in Pyright/Pylance instead of ``Field[Unknown]``; the ``Field.__new__`` type-check stub now returns ``Self``. (#2216)
28-
- ``TransactionContext`` now returns a ``TransactionalDBClient`` instead of a raw database connection. This change gives the correct inferred type for the transaction context. (#2232)
29-
37+
- Type hint for ``TransactionContext`` now returns a ``TransactionalDBClient`` instead of a raw database connection. This change gives the correct inferred type for the transaction context. (#2232)
38+
- Fix TSVectorField returned value conversion. (#2237)
3039

3140
1.1.7
3241
-----

tortoise/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ async def main() -> None:
567567
portal.call(main)
568568

569569

570-
__version__ = "1.1.7"
570+
__version__ = "1.1.8"
571571

572572
__all__ = [
573573
"BackwardFKRelation",

0 commit comments

Comments
 (0)