Black formatting

This commit is contained in:
Simon Willison 2019-02-24 11:40:58 -08:00
commit c5286d2c66
2 changed files with 6 additions and 16 deletions

View file

@ -257,9 +257,7 @@ class Table:
def add_column(self, col_name, col_type):
sql = "ALTER TABLE [{table}] ADD COLUMN [{col_name}] {col_type};".format(
table=self.name,
col_name=col_name,
col_type=COLUMN_TYPE_MAPPING[col_type],
table=self.name, col_name=col_name, col_type=COLUMN_TYPE_MAPPING[col_type]
)
self.db.conn.execute(sql)
return self