mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-12 03:24:23 +02:00
Use drop table if exists
This commit is contained in:
parent
494075584f
commit
fa6ae2b332
1 changed files with 1 additions and 1 deletions
|
|
@ -713,7 +713,7 @@ class Database:
|
|||
except Exception:
|
||||
self._supports_on_conflict = False
|
||||
finally:
|
||||
self.conn.execute("drop table {}".format(table_name))
|
||||
self.conn.execute("drop table if exists {}".format(table_name))
|
||||
return self._supports_on_conflict
|
||||
|
||||
@property
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue