diff --git a/core/Command/Db/Migrations/PreviewCommand.php b/core/Command/Db/Migrations/PreviewCommand.php
index e35100dacb2e6..5a0e766ee6d18 100644
--- a/core/Command/Db/Migrations/PreviewCommand.php
+++ b/core/Command/Db/Migrations/PreviewCommand.php
@@ -62,6 +62,12 @@ public function execute(InputInterface $input, OutputInterface $output): int {
}
$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: ' . implode(', ', $unsupportedApps) . '');
+ }
+
return 0;
}
@@ -90,6 +96,9 @@ private function displayMigrations(Table $table, string $appId, array $data): vo
/** @var MigrationAttribute[] $attributes */
foreach($data as $migration => $attributes) {
$attributesStr = [];
+ if (empty($attributes)) {
+ $attributesStr[] = '(metadata not set)';
+ }
foreach($attributes as $attribute) {
$definition = '' . $attribute->definition() . "";
$definition .= empty($attribute->getDescription()) ? '' : "\n " . $attribute->getDescription();
diff --git a/lib/private/Migration/MetadataManager.php b/lib/private/Migration/MetadataManager.php
index 402252d6a4608..324c169c626f6 100644
--- a/lib/private/Migration/MetadataManager.php
+++ b/lib/private/Migration/MetadataManager.php
@@ -88,6 +88,18 @@ public function getMigrationsAttributesFromReleaseMetadata(
];
}
+ /**
+ * returns list of installed apps that does not support migrations metadata (yet)
+ *
+ * @param array> $metadata
+ *
+ * @return string[]
+ * @since 30.0.0
+ */
+ public function getUnsupportedApps(array $metadata): array {
+ return array_values(array_diff($this->appManager->getInstalledApps(), array_keys($metadata['apps'])));
+ }
+
/**
* convert raw data to a list of MigrationAttribute
*