From 8108fbc2ac1eb10bad2a7f1240328ae65cedabd9 Mon Sep 17 00:00:00 2001 From: Andrey Bondar Date: Fri, 23 Aug 2024 10:18:23 +0300 Subject: [PATCH] Added missing field_type for TimeDeltaField (#1462) (#1699) --- tortoise/fields/data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tortoise/fields/data.py b/tortoise/fields/data.py index 34150c3a3..eb1cbcb83 100644 --- a/tortoise/fields/data.py +++ b/tortoise/fields/data.py @@ -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: