2014-12-18 23:42:46 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$table = new ManiphestTransaction();
|
|
|
|
$conn_w = $table->establishConnection('w');
|
|
|
|
|
2015-05-22 09:27:56 +02:00
|
|
|
echo pht(
|
|
|
|
"Converting Maniphest CC transactions to modern ".
|
|
|
|
"subscriber transactions...\n");
|
2014-12-18 23:42:46 +01:00
|
|
|
foreach (new LiskMigrationIterator($table) as $txn) {
|
|
|
|
// ManiphestTransaction::TYPE_CCS
|
|
|
|
if ($txn->getTransactionType() == 'ccs') {
|
|
|
|
queryfx(
|
|
|
|
$conn_w,
|
|
|
|
'UPDATE %T SET transactionType = %s WHERE id = %d',
|
|
|
|
$table->getTableName(),
|
|
|
|
PhabricatorTransactions::TYPE_SUBSCRIBERS,
|
|
|
|
$txn->getID());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-22 09:27:56 +02:00
|
|
|
echo pht('Done.')."\n";
|