Commit d137b214 authored by Ad Schellevis's avatar Ad Schellevis

output style for unversioned upgrade in run_migrations.php

parent f3aed569
...@@ -50,8 +50,9 @@ foreach (new RecursiveIteratorIterator (new RecursiveDirectoryIterator ($model_d ...@@ -50,8 +50,9 @@ foreach (new RecursiveIteratorIterator (new RecursiveDirectoryIterator ($model_d
$mdl->runMigrations(); $mdl->runMigrations();
$version_post = $mdl->getVersion(); $version_post = $mdl->getVersion();
if ($version_pre != $version_post) { 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. " from " . $version_pre .
" to " . $version_post . "\n" ; " to " . $version_post . "\n" ;
$executed_migration = true; $executed_migration = true;
} elseif (!empty($version_post)) { } elseif (!empty($version_post)) {
......
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