##// END OF EJS Templates
db-migration: added a helper to manage versions.
marcink -
r2901:f43cf210 default
parent child Browse files
Show More
@@ -4496,6 +4496,15 b' class DbMigrateVersion(Base, BaseModel):'
4496 4496 repository_path = Column('repository_path', Text)
4497 4497 version = Column('version', Integer)
4498 4498
4499 @classmethod
4500 def set_version(cls, version):
4501 """
4502 Helper for forcing a different version, usually for debugging purposes via ishell.
4503 """
4504 ver = DbMigrateVersion.query().first()
4505 ver.version = version
4506 Session().commit()
4507
4499 4508
4500 4509 class DbSession(Base, BaseModel):
4501 4510 __tablename__ = 'db_session'
General Comments 0
You need to be logged in to leave comments. Login now