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)
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)
def main(user): user and drop_privileges(user)