From 6af7854de36be215d7ef59a2663b492d5bd13cfd Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 5 Aug 2022 15:10:41 +0200 Subject: [PATCH] CLI allow empty DB prefix (#4488) Allow an empty `--db-prefix` parameter (i.e. optional) in CLI to have no DB prefix --- cli/do-install.php | 2 +- cli/reconfigure.php | 2 +- 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));