From eb50d99ce6d8861c24f127045d0d509a62d86c09 Mon Sep 17 00:00:00 2001 From: Mantas Briliauskas <3845361+mantelllo@users.noreply.github.com> Date: Wed, 25 Nov 2020 22:38:13 +0200 Subject: [PATCH] Make SQLitePlatform support float type --- orator/dbal/platforms/sqlite_platform.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/orator/dbal/platforms/sqlite_platform.py b/orator/dbal/platforms/sqlite_platform.py index 05540d50..319cb377 100644 --- a/orator/dbal/platforms/sqlite_platform.py +++ b/orator/dbal/platforms/sqlite_platform.py @@ -480,6 +480,9 @@ def get_boolean_type_declaration_sql(self, column): def get_integer_type_declaration_sql(self, column): return 'INTEGER' + self._get_common_integer_type_declaration_sql(column) + def get_float_type_declaration_sql(self, column): + return 'FLOAT' + def get_bigint_type_declaration_sql(self, column): # SQLite autoincrement is implicit for INTEGER PKs, but not for BIGINT fields. if not column.get('autoincrement', False):