From 1eb22ab3b9f85d504f2d5ab8693257d13e56b5c7 Mon Sep 17 00:00:00 2001 From: Tomas Brabenec Date: Wed, 29 Jul 2015 10:50:18 +0200 Subject: [PATCH] Update db_converter.py Change convert tinyint to smallint (previously boolean), because tinyint can take values from -128 to 127 (not only 0/1 or True/False). --- db_converter.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/db_converter.py b/db_converter.py index 63e3bf7..a7449af 100644 --- a/db_converter.py +++ b/db_converter.py @@ -111,9 +111,7 @@ def parse(input_filename, output_filename): final_type = None set_sequence = None if type.startswith("tinyint("): - type = "int4" - set_sequence = True - final_type = "boolean" + type = "smallint" elif type.startswith("mediumint("): type = "integer" elif type.startswith("float("):