Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
26ae08a4ed50
Commit
b031a47a
authored
Apr 20, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cubicweb/server/serverctl.py
View file @
26ae08a4
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment