}
$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;
}
/** @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();
];
}
+ /**
+ * returns list of installed apps that does not support migrations metadata (yet)
+ *
+ * @param array<array-key, array<array-key, 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
*