Page MenuHomePhorge

20141218.maniphestcctxn.php
No OneTemporary

Size
540 B
Referenced Files
None
Subscribers
None

20141218.maniphestcctxn.php

<?php
$table = new ManiphestTransaction();
$conn_w = $table->establishConnection('w');
echo pht(
"Converting Maniphest CC transactions to modern ".
"subscriber transactions...\n");
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());
}
}
echo pht('Done.')."\n";

File Metadata

Mime Type
text/x-php
Expires
Thu, Jul 17, 12:25 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
370315
Default Alt Text
20141218.maniphestcctxn.php (540 B)

Event Timeline