Commit bdd98529 authored by Daniele Venzano's avatar Daniele Venzano

Take care of the case where the schema does not exist

parent 5b721faa
......@@ -124,7 +124,7 @@ def init(force=False):
if force:
cur.execute("DELETE FROM public.versions WHERE deployment = %s", (get_conf().deployment_name,))
cur.execute('DROP SCHEMA {} CASCADE'.format(get_conf().deployment_name))
cur.execute('DROP SCHEMA IF EXISTS {} CASCADE'.format(get_conf().deployment_name))
if not check_schema_version(cur, get_conf().deployment_name):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment