Skip to content

Commit 4bbd2d5

Browse files
author
epriestley
committed
Make an old migration a little more robust
Summary: See phacility#507 Test Plan: This is hard to test since the migration no longer runs against HEAD, but pull 507 strongly implies this is the correct fix. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D8837
1 parent 67f015a commit 4bbd2d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

resources/sql/patches/20131004.dxreviewers.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
->setActor(PhabricatorUser::getOmnipotentUser());
3030

3131
foreach ($reviewer_phids as $dst) {
32+
if (phid_get_type($dst) == PhabricatorPHIDConstants::PHID_TYPE_UNKNOWN) {
33+
// At least one old install ran into some issues here. Skip the row if we
34+
// can't figure out what the destination PHID is. See here:
35+
// https://github.com/facebook/phabricator/pull/507
36+
continue;
37+
}
38+
3239
$editor->addEdge(
3340
$revision_phid,
3441
PhabricatorEdgeConfig::TYPE_DREV_HAS_REVIEWER,

0 commit comments

Comments
 (0)