Display error when migration file is not found (#3597)
Fixes #3590. Credit to @scottbedard
This commit is contained in:
parent
fb2aa1730c
commit
8b650e3bd0
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Reference in New Issue