Changeset - 686169e4b3c9
[Not reviewed]
0 1 0
Lance Edgar (lance) - 12 years ago 2012-09-18 18:23:34
lance@edbob.org
fix batch table create/drop
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rattail/db/extension/model.py
Show inline comments
 
@@ -197,14 +197,16 @@ class Batch(Base):
 
        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):
 
        """
 
        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):
 
        provider = self.get_provider()
0 comments (0 inline, 0 general)