From 65f341fbf4e9e174c14e24374d99cbffb5f44cf6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 10 Jun 2022 16:16:12 +0300 Subject: [PATCH] CLI: properly deal with --force-yes on schema update --- update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.php b/update.php index 0c598d969..d63706b86 100755 --- a/update.php +++ b/update.php @@ -269,7 +269,7 @@ if (isset($options["update-schema"])) { if (Config::is_migration_needed()) { - if (!isset($options['force-yes']) || $options["update-schema"] != "force-yes") { + if (!isset($options['force-yes']) && $options["update-schema"] != "force-yes") { Debug::log("Type 'yes' to continue."); if (read_stdin() != 'yes')