CLI: properly deal with --force-yes on schema update

This commit is contained in:
Andrew Dolgov 2022-06-10 16:16:12 +03:00
parent 25b71b90b2
commit 65f341fbf4
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 1 additions and 1 deletions

View File

@ -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')