Fix adjust phases for keys
Summary: Ref T1191. I renamed the phases but missed these two since I didn't have any more key issues locally. Test Plan: Ran `bin/storage adjust` in production with key issues. Reviewers: btrahan Subscribers: chad, epriestley Maniphest Tasks: T1191 Differential Revision: https://secure.phabricator.com/D10612
This commit is contained in:
@@ -231,7 +231,7 @@ final class PhabricatorStorageManagementAdjustWorkflow
|
||||
}
|
||||
break;
|
||||
case 'key':
|
||||
if (($phase == 0) && $adjust['exists']) {
|
||||
if (($phase == 'drop_keys') && $adjust['exists']) {
|
||||
if ($adjust['name'] == 'PRIMARY') {
|
||||
$key_name = 'PRIMARY KEY';
|
||||
} else {
|
||||
@@ -246,7 +246,7 @@ final class PhabricatorStorageManagementAdjustWorkflow
|
||||
$key_name);
|
||||
}
|
||||
|
||||
if (($phase == 2) && $adjust['keep']) {
|
||||
if (($phase == 'add_keys') && $adjust['keep']) {
|
||||
// Different keys need different creation syntax. Notable
|
||||
// special cases are primary keys and fulltext keys.
|
||||
if ($adjust['name'] == 'PRIMARY') {
|
||||
|
||||
Reference in New Issue
Block a user