예제 #1
0
def main(ctx, user):
    user and drop_privileges(user)

    if db_migratable():
        log.error("Database schema version mismatch. Expected: '%s'. "
                  "Optionally make a backup and then apply automatic database "
                  "migration by using: 'vmcloak migrate'" % SCHEMA_VERSION)

        if ctx.invoked_subcommand != "migrate":
            exit(1)
예제 #2
0
파일: main.py 프로젝트: jbremer/vmcloak
def main(ctx, user):
    user and drop_privileges(user)

    if db_migratable():
        log.error(
            "Database schema version mismatch. Expected: '%s'. "
            "Optionally make a backup and then apply automatic database "
            "migration by using: 'vmcloak migrate'" % SCHEMA_VERSION
        )

        if ctx.invoked_subcommand != "migrate":
            exit(1)
예제 #3
0
def main(user):
    user and drop_privileges(user)
예제 #4
0
파일: main.py 프로젝트: razuz/vmcloak
def main(user):
    user and drop_privileges(user)