Display error when migration file is not found (#3597)

Fixes #3590. Credit to @scottbedard
This commit is contained in:
Scott Bedard 2018-06-25 14:51:07 -07:00 committed by Luke Towers
parent fb2aa1730c
commit 8b650e3bd0
1 changed files with 5 additions and 0 deletions

View File

@ -394,6 +394,11 @@ class VersionManager
* Execute the database PHP script
*/
$updateFile = $this->pluginManager->getPluginPath($code) . '/updates/' . $script;
if (!File::isFile($updateFile)) {
$this->note('- <error>v' . $version . ': Migration file "' . $script . '" not found</error>');
}
$this->updater->setUp($updateFile);
Db::table('system_plugin_history')->insert([