fix batch table create/drop
This commit is contained in:
parent
669c37cd4e
commit
686169e4b3
|
@ -197,14 +197,16 @@ class Batch(Base):
|
||||||
Creates the batch's data table within the database.
|
Creates the batch's data table within the database.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self.rowclass.__table__.create()
|
session = object_session(self)
|
||||||
|
self.rowclass.__table__.create(session.bind)
|
||||||
|
|
||||||
def drop_table(self):
|
def drop_table(self):
|
||||||
"""
|
"""
|
||||||
Drops the batch's data table from the database.
|
Drops the batch's data table from the database.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self.rowclass.__table__.drop()
|
session = object_session(self)
|
||||||
|
self.rowclass.__table__.drop(session.bind)
|
||||||
|
|
||||||
def execute(self, progress=None):
|
def execute(self, progress=None):
|
||||||
provider = self.get_provider()
|
provider = self.get_provider()
|
||||||
|
|
Loading…
Reference in a new issue