aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Db/Migrations/PreviewCommand.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/Db/Migrations/PreviewCommand.php')
-rw-r--r--core/Command/Db/Migrations/PreviewCommand.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Command/Db/Migrations/PreviewCommand.php b/core/Command/Db/Migrations/PreviewCommand.php
index 6440ed5835c..f364709fc7b 100644
--- a/core/Command/Db/Migrations/PreviewCommand.php
+++ b/core/Command/Db/Migrations/PreviewCommand.php
@@ -62,6 +62,12 @@ class PreviewCommand extends Command {
}
$table->render();
+ $unsupportedApps = $this->metadataManager->getUnsupportedApps($metadata['migrations']);
+ if (!empty($unsupportedApps)) {
+ $output->writeln('');
+ $output->writeln('Those apps are not supporting metadata yet and might initiate migrations on upgrade: <info>' . implode(', ', $unsupportedApps) . '</info>');
+ }
+
return 0;
}
@@ -90,6 +96,9 @@ class PreviewCommand extends Command {
/** @var MigrationAttribute[] $attributes */
foreach($data as $migration => $attributes) {
$attributesStr = [];
+ if (empty($attributes)) {
+ $attributesStr[] = '<comment>(metadata not set)</comment>';
+ }
foreach($attributes as $attribute) {
$definition = '<info>' . $attribute->definition() . "</info>";
$definition .= empty($attribute->getDescription()) ? '' : "\n " . $attribute->getDescription();