Exemplo n.º 1
0
Arquivo: api.py Projeto: gondoi/heat
def db_sync(version=None):
    """Migrate the database to `version` or the most recent version."""
    return migration.db_sync(version=version)
Exemplo n.º 2
0
def db_sync(engine, version=None):
    """Migrate the database to `version` or the most recent version."""
    return migration.db_sync(engine, version=version)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
 def db_sync(self, engine):
     migration.db_sync(engine=engine)
Exemplo n.º 5
0
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)
Exemplo n.º 6
0
 def db_sync(self, engine):
     migration.db_sync(engine=engine)