def db_sync(version=None): """Migrate the database to `version` or the most recent version.""" return migration.db_sync(version=version)
def db_sync(engine, version=None): """Migrate the database to `version` or the most recent version.""" return migration.db_sync(engine, version=version)
def db_sync(engine, version=None): """Migrate the database to `version` or the most recent version.""" if version is not None and int(version) < db_version(engine): raise exception.Error(_("Cannot migrate to lower schema version.")) return migration.db_sync(engine, version=version)
def db_sync(self, engine): migration.db_sync(engine=engine)