mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 18:04:32 +02:00
Black formatting
This commit is contained in:
parent
dc2560879e
commit
c5286d2c66
2 changed files with 6 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue