Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Make SQLitePlatform support float type #384

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions orator/dbal/platforms/sqlite_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down