Exemple #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)
Exemple #2
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)
Exemple #3
0
def main(user):
    user and drop_privileges(user)
Exemple #4
0
def main(user):
    user and drop_privileges(user)