Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15419362
D14116.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14116.id.diff
View Options
diff --git a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementStatusWorkflow.php b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementStatusWorkflow.php
--- a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementStatusWorkflow.php
+++ b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementStatusWorkflow.php
@@ -22,7 +22,7 @@
pht('Database Not Initialized'),
pht('Run **%s** to initialize.', 'storage upgrade'));
- return 1;
+ return -1;
}
$table = id(new PhutilConsoleTable())
@@ -32,19 +32,25 @@
->addColumn('type', array('title' => pht('Type')))
->addColumn('name', array('title' => pht('Name')));
+ $status = 0;
+
foreach ($patches as $patch) {
+ $applied = in_array($patch->getFullKey(), $applied);
+
$table->addRow(array(
'id' => $patch->getFullKey(),
- 'status' => in_array($patch->getFullKey(), $applied)
- ? pht('Applied')
- : pht('Not Applied'),
+ 'status' => $applied ? pht('Applied') : pht('Not Applied'),
'type' => $patch->getType(),
'name' => $patch->getName(),
));
+
+ if (!$applied) {
+ $status++;
+ }
}
$table->draw();
- return 0;
+ return $status;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 22, 5:35 AM (1 d, 8 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7253190
Default Alt Text
D14116.id.diff (1 KB)
Attached To
Mode
D14116: Return a non-zero status from `./bin/storage status`
Attached
Detach File
Event Timeline
Log In to Comment