diff --git a/modules/system/console/OctoberUtil.php b/modules/system/console/OctoberUtil.php index 8d99b4b50..08c9ebd41 100644 --- a/modules/system/console/OctoberUtil.php +++ b/modules/system/console/OctoberUtil.php @@ -1,5 +1,6 @@ comment('-'); + /* + * Skip setting the build number if no database is detected to set it within + */ + if (!App::hasDatabase()) { + $this->comment('No database detected - skipping setting the build number.'); + return; + } + try { $build = UpdateManager::instance()->setBuildNumberManually(); $this->comment('*** October sets build: '.$build);