fix: change duration fieldtype to decimal

This commit is contained in:
Rucha Mahabal 2020-05-06 12:36:22 +05:30
parent b696306edc
commit 972833d13f
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ class MariaDBDatabase(Database):
'Color': ('varchar', self.VARCHAR_LEN),
'Barcode': ('longtext', ''),
'Geolocation': ('longtext', ''),
'Duration': ('bigint', '20')
'Duration': ('decimal', '18,6')
}
def get_connection(self):

View file

@ -61,7 +61,7 @@ class PostgresDatabase(Database):
'Color': ('varchar', self.VARCHAR_LEN),
'Barcode': ('text', ''),
'Geolocation': ('text', ''),
'Duration': ('bigint', '20')
'Duration': ('decimal', '18,6')
}
def get_connection(self):