mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-16 13:34:10 +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:
|
except Exception:
|
||||||
self._supports_on_conflict = False
|
self._supports_on_conflict = False
|
||||||
finally:
|
finally:
|
||||||
self.conn.execute("drop table {}".format(table_name))
|
self.conn.execute("drop table if exists {}".format(table_name))
|
||||||
return self._supports_on_conflict
|
return self._supports_on_conflict
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue