Skip to content

Commit

Permalink
Added missing field_type for TimeDeltaField (#1462)
Browse files Browse the repository at this point in the history
  • Loading branch information
abondar committed Aug 22, 2024
1 parent 4e5847a commit 1ad8b3a
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 1ad8b3a

Please sign in to comment.