Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117883601
20141218.maniphestcctxn.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
524 B
Referenced Files
None
Subscribers
None
20141218.maniphestcctxn.php
View Options
<?php
$table
=
new
ManiphestTransaction
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
echo
"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
"Done.
\n
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Apr 6, 1:07 AM (3 d, 14 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831800
Default Alt Text
20141218.maniphestcctxn.php (524 B)
Attached To
Mode
rPH phabricator
Attached
Detach File
Event Timeline