Exemple #1
0
 def upgrade_environment(self, db):
     db = db or self.env.get_db_cnx()
     do_upgrade(self.env, db, get_version(db))
     db.commit()
Exemple #2
0
 def environment_needs_upgrade(self, db):
     db_ver = get_version(db)
     return db_ver < [int(i) for i in __version__.split('.')]