Fix name shadows builtin

This commit is contained in:
Labrys of Knossos 2018-12-26 12:28:18 -05:00 committed by Lizband
commit ad3fb4519d
7 changed files with 74 additions and 74 deletions

View file

@ -274,8 +274,8 @@ class SchemaUpgrade(object):
def has_column(self, table_name, column):
return column in self.connection.table_info(table_name)
def add_column(self, table, column, type="NUMERIC", default=0):
self.connection.action("ALTER TABLE {0} ADD {1} {2}".format(table, column, type))
def add_column(self, table, column, data_type="NUMERIC", default=0):
self.connection.action("ALTER TABLE {0} ADD {1} {2}".format(table, column, data_type))
self.connection.action("UPDATE {0} SET {1} = ?".format(table, column), (default,))
def check_db_version(self):