Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/autopatches/20180208.maniphest.02.populate.php
Show All 20 Lines | foreach (new LiskMigrationIterator($table) as $task) { | ||||
// it doesn't currently produce a separate transaction. | // it doesn't currently produce a separate transaction. | ||||
$type_status = ManiphestTaskStatusTransaction::TRANSACTIONTYPE; | $type_status = ManiphestTaskStatusTransaction::TRANSACTIONTYPE; | ||||
$type_merge = ManiphestTaskMergedIntoTransaction::TRANSACTIONTYPE; | $type_merge = ManiphestTaskMergedIntoTransaction::TRANSACTIONTYPE; | ||||
$xactions = id(new ManiphestTransactionQuery()) | $xactions = id(new ManiphestTransactionQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withObjectPHIDs(array($task->getPHID())) | ->withObjectPHIDs(array($task->getPHID())) | ||||
->needHandles(false) | |||||
->withTransactionTypes( | ->withTransactionTypes( | ||||
array( | array( | ||||
$type_merge, | $type_merge, | ||||
$type_status, | $type_status, | ||||
)) | )) | ||||
->execute(); | ->execute(); | ||||
foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
$old = $xaction->getOldValue(); | $old = $xaction->getOldValue(); | ||||
Show All 29 Lines |