close #352 Fixed: Not running migrations on module install

This commit is contained in:
cuneytsenturk
2018-05-22 12:18:34 +03:00
parent b894daff29
commit 8242da88f3
5 changed files with 26 additions and 5 deletions

View File

@ -137,7 +137,7 @@ class Updater
$data['core'] = $version;
}
} else {
$module = Module::get($alias);
$module = Module::findByAlias($alias);
// Up-to-date
if (version_compare($module->get('version'), $version) == 0) {