Skip to content

Commit

Permalink
Added missing field_type for TimeDeltaField (#1462) (#1699)
Browse files Browse the repository at this point in the history
  • Loading branch information
abondar committed Aug 23, 2024
1 parent 4e5847a commit 8108fbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tortoise/fields/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ class TimeDeltaField(Field[datetime.timedelta]):
A field for storing time differences.
"""

field_type = datetime.timedelta
SQL_TYPE = "BIGINT"

class _db_oracle:
Expand Down

0 comments on commit 8108fbc

Please sign in to comment.