Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/patches/20131004.dxreviewers.php
Show All 23 Lines | foreach (new LiskMigrationIterator($table) as $revision) { | ||||
if (!$reviewer_phids) { | if (!$reviewer_phids) { | ||||
continue; | continue; | ||||
} | } | ||||
$editor = new PhabricatorEdgeEditor(); | $editor = new PhabricatorEdgeEditor(); | ||||
foreach ($reviewer_phids as $dst) { | foreach ($reviewer_phids as $dst) { | ||||
if (phid_get_type($dst) == PhabricatorPHIDConstants::PHID_TYPE_UNKNOWN) { | if (phid_get_type($dst) == PhabricatorPHIDConstants::PHID_TYPE_UNKNOWN) { | ||||
// At least one old install ran into some issues here. Skip the row if we | // At least one old install ran into some issues here. Skip the row if we | ||||
// can't figure out what the destination PHID is. See here: | // can't figure out what the destination PHID is. | ||||
// https://github.com/phacility/phabricator/pull/507 | |||||
continue; | continue; | ||||
} | } | ||||
$editor->addEdge( | $editor->addEdge( | ||||
$revision_phid, | $revision_phid, | ||||
DifferentialRevisionHasReviewerEdgeType::EDGECONST, | DifferentialRevisionHasReviewerEdgeType::EDGECONST, | ||||
$dst, | $dst, | ||||
array( | array( | ||||
Show All 10 Lines |