aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2024-08-07 11:48:20 -0100
committerGitHub <noreply@github.com>2024-08-07 11:48:20 -0100
commit3ffcfb1dab2c81646d2af3518197b7f3dd3a710d (patch)
tree35d2c2f030f189a8a065c9d8ffede426f9f3bdd5 /core
parent3da69fca60955c152ee90eefd3122842b2859848 (diff)
parent6ad6fa64258491fb35f9306c04ca2740bb4f6040 (diff)
downloadnextcloud-server-3ffcfb1dab2c81646d2af3518197b7f3dd3a710d.tar.gz
nextcloud-server-3ffcfb1dab2c81646d2af3518197b7f3dd3a710d.zip
Merge pull request #47069 from nextcloud/fix/noid/display-message-on-no-migration-attributes
fix(migration-preview): display a message if no attributes set
Diffstat (limited to 'core')
-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 e35100dacb2..5a0e766ee6d 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();