1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-15 01:50:55 +01:00

(stable) Correct flipped transaction constants in "Closed Date" migration

Summary: These transaction constants are flipped, which can produce the wrong result in some cases.

Test Plan: `./bin/storage upgrade -f --apply phabricator:20180208.maniphest.02.populate.php`

Differential Revision: https://secure.phabricator.com/D19054
This commit is contained in:
epriestley 2018-02-10 06:09:22 -08:00
parent 88faa980c6
commit 215b8b4727

View file

@ -20,8 +20,8 @@ foreach (new LiskMigrationIterator($table) as $task) {
// where the task was closed. A merge also counts as a close, even though
// it doesn't currently produce a separate transaction.
$type_merge = ManiphestTaskStatusTransaction::TRANSACTIONTYPE;
$type_status = ManiphestTaskMergedIntoTransaction::TRANSACTIONTYPE;
$type_status = ManiphestTaskStatusTransaction::TRANSACTIONTYPE;
$type_merge = ManiphestTaskMergedIntoTransaction::TRANSACTIONTYPE;
$xactions = id(new ManiphestTransactionQuery())
->setViewer($viewer)