Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93654567
20141218.maniphestcctxn.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 30, 11:42
Size
540 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 11:42 (2 d)
Engine
blob
Format
Raw Data
Handle
22681241
Attached To
rPH Phabricator
20141218.maniphestcctxn.php
View Options
<?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
"
;
Event Timeline
Log In to Comment