From 8b650e3bd00b6f9cf74751b8749328d701c78819 Mon Sep 17 00:00:00 2001 From: Scott Bedard Date: Mon, 25 Jun 2018 14:51:07 -0700 Subject: [PATCH] Display error when migration file is not found (#3597) Fixes #3590. Credit to @scottbedard --- modules/system/classes/VersionManager.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/system/classes/VersionManager.php b/modules/system/classes/VersionManager.php index 3e355d264..dcedfdc07 100644 --- a/modules/system/classes/VersionManager.php +++ b/modules/system/classes/VersionManager.php @@ -394,6 +394,11 @@ class VersionManager * Execute the database PHP script */ $updateFile = $this->pluginManager->getPluginPath($code) . '/updates/' . $script; + + if (!File::isFile($updateFile)) { + $this->note('- v' . $version . ': Migration file "' . $script . '" not found'); + } + $this->updater->setUp($updateFile); Db::table('system_plugin_history')->insert([