Ejemplo n.º 1
0
 def sync(self, version=None):
     """Sync the database up to the most recent version."""
     if version is not None and version > db.MAX_INT:
         print(
             _('Version should be less than or equal to '
               '%(max_version)d.') % {'max_version': db.MAX_INT})
         sys.exit(1)
     try:
         return db_migration.db_sync(version)
     except db_exc.DBMigrationError as ex:
         print("Error during database migration: %s" % ex)
         sys.exit(1)
Ejemplo n.º 2
0
 def sync(self, version=None):
     """Sync the database up to the most recent version."""
     return db_migration.db_sync(version)
Ejemplo n.º 3
0
 def sync(self, version=None):
     """Sync the database up to the most recent version."""
     return db_migration.db_sync(version)