Remove table from db cache, fixes #329.
This commit is contained in:
parent
17fffe78c2
commit
439e14f421
@ -529,6 +529,7 @@ class Table(object):
|
|||||||
self._threading_warn()
|
self._threading_warn()
|
||||||
self.table.drop(self.db.executable, checkfirst=True)
|
self.table.drop(self.db.executable, checkfirst=True)
|
||||||
self._table = None
|
self._table = None
|
||||||
|
self.db._tables.pop(self.name, None)
|
||||||
self._flush_metadata()
|
self._flush_metadata()
|
||||||
|
|
||||||
def has_index(self, columns):
|
def has_index(self, columns):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user