Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/patches/20131004.dxreviewers.php
Show All 30 Lines | 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. See here: | ||||
// https://github.com/phacility/phabricator/pull/507 | // https://github.com/phacility/phabricator/pull/507 | ||||
continue; | continue; | ||||
} | } | ||||
$editor->addEdge( | $editor->addEdge( | ||||
$revision_phid, | $revision_phid, | ||||
PhabricatorEdgeConfig::TYPE_DREV_HAS_REVIEWER, | DifferentialRevisionHasReviewerEdgeType::EDGECONST, | ||||
$dst, | $dst, | ||||
array( | array( | ||||
'data' => array( | 'data' => array( | ||||
'status' => DifferentialReviewerStatus::STATUS_ADDED, | 'status' => DifferentialReviewerStatus::STATUS_ADDED, | ||||
), | ), | ||||
)); | )); | ||||
} | } | ||||
$editor->save(); | $editor->save(); | ||||
} | } | ||||
echo "Done.\n"; | echo "Done.\n"; |