Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F459622
20130802.heraldphids.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
516 B
Referenced Files
None
Subscribers
None
20130802.heraldphids.php
View Options
<?php
$table
=
new
HeraldRule
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
echo
pht
(
'Assigning PHIDs to Herald Rules...'
).
"
\n
"
;
foreach
(
new
LiskMigrationIterator
(
new
HeraldRule
())
as
$rule
)
{
$id
=
$rule
->
getID
();
echo
pht
(
'Rule %d.'
,
$id
).
"
\n
"
;
if
(
$rule
->
getPHID
())
{
continue
;
}
queryfx
(
$conn_w
,
'UPDATE %T SET phid = %s WHERE id = %d'
,
$table
->
getTableName
(),
PhabricatorPHID
::
generateNewPHID
(
HeraldRulePHIDType
::
TYPECONST
),
$rule
->
getID
());
}
echo
pht
(
'Done.'
).
"
\n
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 2:21 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
72083
Default Alt Text
20130802.heraldphids.php (516 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment