diff --git a/config/database.php b/config/database.php index f57e26acac..7421f5f8ea 100644 --- a/config/database.php +++ b/config/database.php @@ -98,6 +98,20 @@ 'migrations' => 'migrations', + /* + |-------------------------------------------------------------------------- + | Console Configuration Table + |-------------------------------------------------------------------------- + | + | This table controls the configurable behavior of the console as + | as it relates to the database and migrations. + | + */ + + 'console' => [ + 'confirm_in_prod' => env('MIGRATION_CONFIRM_IN_PROD', false), + ], + /* |-------------------------------------------------------------------------- | Redis Databases diff --git a/modules/system/console/WinterUp.php b/modules/system/console/WinterUp.php index 1b54d1d534..b7d79bf678 100644 --- a/modules/system/console/WinterUp.php +++ b/modules/system/console/WinterUp.php @@ -1,6 +1,9 @@ -confirmToProceed()) { + return 1; + } + $this->output->writeln('Migrating application and plugins...'); UpdateManager::instance()