aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-08-05 15:10:41 +0200
committerGravatar GitHub <noreply@github.com> 2022-08-05 15:10:41 +0200
commit6af7854de36be215d7ef59a2663b492d5bd13cfd (patch)
treeb3c2e9e3e168308b41fee99046ac06be0ba1ebd0
parent8bb11bd4f8cd91470591121b88aeb6c0983ab9d8 (diff)
CLI allow empty DB prefix (#4488)
Allow an empty `--db-prefix` parameter (i.e. optional) in CLI to have no DB prefix
-rwxr-xr-xcli/do-install.php2
-rwxr-xr-xcli/reconfigure.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/cli/do-install.php b/cli/do-install.php
index db1af8ea5..c5258d1e0 100755
--- a/cli/do-install.php
+++ b/cli/do-install.php
@@ -26,7 +26,7 @@ $dBparams = array(
'db-user:',
'db-password:',
'db-base:',
- 'db-prefix:',
+ 'db-prefix::',
);
$options = getopt('', array_merge($params, $dBparams));
diff --git a/cli/reconfigure.php b/cli/reconfigure.php
index 7495fc367..aefd1e20b 100755
--- a/cli/reconfigure.php
+++ b/cli/reconfigure.php
@@ -22,7 +22,7 @@ $dBparams = array(
'db-user:',
'db-password:',
'db-base:',
- 'db-prefix:',
+ 'db-prefix::',
);
$options = getopt('', array_merge($params, $dBparams));