@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3$table = new ManiphestTransaction();
4$conn_w = $table->establishConnection('w');
5
6echo pht(
7 "Converting Maniphest CC transactions to modern ".
8 "subscriber transactions...\n");
9foreach (new LiskMigrationIterator($table) as $txn) {
10 // ManiphestTransaction::TYPE_CCS
11 if ($txn->getTransactionType() == 'ccs') {
12 queryfx(
13 $conn_w,
14 'UPDATE %T SET transactionType = %s WHERE id = %d',
15 $table->getTableName(),
16 PhabricatorTransactions::TYPE_SUBSCRIBERS,
17 $txn->getID());
18 }
19}
20
21echo pht('Done.')."\n";