Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F87770416
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
Mon, Oct 14, 21:03
Size
540 B
Mime Type
text/x-php
Expires
Wed, Oct 16, 21:03 (2 d)
Engine
blob
Format
Raw Data
Handle
21653833
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