mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Applied Black
This commit is contained in:
parent
752d261229
commit
f29f6821f2
1 changed files with 3 additions and 1 deletions
|
|
@ -869,7 +869,9 @@ class Table(Queryable):
|
|||
# Drop the old table
|
||||
sqls.append("DROP TABLE [{}];".format(self.name))
|
||||
# Rename the new one
|
||||
sqls.append("ALTER TABLE [{}] RENAME TO [{}];".format(new_table_name, self.name))
|
||||
sqls.append(
|
||||
"ALTER TABLE [{}] RENAME TO [{}];".format(new_table_name, self.name)
|
||||
)
|
||||
|
||||
if should_flip_foreign_keys_pragma:
|
||||
sqls.append("PRAGMA foreign_key_check;")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue