示例#1
0
文件: api.py 项目: gondoi/heat
def db_sync(version=None):
    """Migrate the database to `version` or the most recent version."""
    return migration.db_sync(version=version)
示例#2
0
文件: api.py 项目: BeenzSyed/heat
def db_sync(engine, version=None):
    """Migrate the database to `version` or the most recent version."""
    return migration.db_sync(engine, version=version)
示例#3
0
文件: api.py 项目: snehangshuk/heat
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)
示例#4
0
 def db_sync(self, engine):
     migration.db_sync(engine=engine)
示例#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)
示例#6
0
 def db_sync(self, engine):
     migration.db_sync(engine=engine)