Commit b031a47a authored by François Ferry's avatar François Ferry
Browse files

fix(dbcreate): don't ask confirmation to create schema in automatic

related: #296
parent bcb633bd791d
Pipeline #50904 passed with stages
in 38 minutes and 10 seconds
......@@ -425,8 +425,11 @@ class CreateInstanceDBCommand(Command):
cursor = cnx.cursor()
helper.init_fti_extensions(cursor)
namespace = source.get('db-namespace')
if namespace and ASK.confirm('Create schema %s in database %s ?'
% (namespace, dbname)):
if namespace and (
automatic or ASK.confirm(
'Create schema %s in database %s ?' % (namespace, dbname)
)
):
helper.create_schema(cursor, namespace)
cnx.commit()
# postgres specific stuff
......
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