Use proper SQL types

- When recreating the table to drop a column, the correct SQL type must be
  converted by the database.
- SQLite uses BOOLEAN as base type for BOOL

issue7120
review37001002
This commit is contained in:
Cédric Krier committed 2018-02-19 19:07:30 +01:00
1 parent 54f70e2971
commit 8a7953bb8f
2 files changed
+9 -4

No files matched your search

+1
View File
@@ -236,6 +236,7 @@ class Database(DatabaseInterface):
TYPES_MAPPING = {
'DATETIME': SQLType('TIMESTAMP', 'TIMESTAMP'),
'BIGINT': SQLType('INTEGER', 'INTEGER'),
'BOOL': SQLType('BOOLEAN', 'BOOLEAN'),
}
def __new__(cls, name=':memory:'):