Commit 044d519f authored by Franco Fichtner's avatar Franco Fichtner

config: change migration a tiny bit

parent 0f551f09
......@@ -56,7 +56,13 @@ foreach ($inc_files as $inc_file) {
echo "done.\n";
convert_config(true);
/*
* If this was an import or restore or reset, once run
* the migration, but do not display the status here as
* otherwise this prints all the models that keep their
* current version level.
*/
convert_config();
/*
* Now mute console messages from kernel for this script, it
......
......@@ -50,14 +50,14 @@ foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($model_dir
$version_post = $mdl->getVersion();
if ($version_pre != $version_post) {
$version_pre = !empty($version_pre) ? $version_pre : ' <unversioned> ';
echo "migrated " . $mdl_class_info->getName() .
echo "Migrated " . $mdl_class_info->getName() .
" from " . $version_pre .
" to " . $version_post . "\n";
$executed_migration = true;
} elseif (!empty($version_post)) {
echo "keep version " . $mdl_class_info->getName() . " (".$version_post.")\n";
echo "Keep version " . $mdl_class_info->getName() . " (".$version_post.")\n";
} else {
echo "unversioned " . $mdl_class_info->getName() . "\n";
echo "Unversioned " . $mdl_class_info->getName() . "\n";
}
}
} catch (\ReflectionException $e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment