Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F492500
20140226.dxcustom.1.fielddata.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
645 B
Referenced Files
None
Subscribers
None
20140226.dxcustom.1.fielddata.php
View Options
<?php
$conn_w
=
id
(
new
DifferentialRevision
())->
establishConnection
(
'w'
);
$rows
=
new
LiskRawMigrationIterator
(
$conn_w
,
'differential_auxiliaryfield'
);
echo
pht
(
'Modernizing Differential auxiliary field storage...'
).
"
\n
"
;
$table_name
=
id
(
new
DifferentialCustomFieldStorage
())->
getTableName
();
foreach
(
$rows
as
$row
)
{
$id
=
$row
[
'id'
];
echo
pht
(
'Migrating row %d...'
,
$id
).
"
\n
"
;
queryfx
(
$conn_w
,
'INSERT IGNORE INTO %T (objectPHID, fieldIndex, fieldValue)
VALUES (%s, %s, %s)'
,
$table_name
,
$row
[
'revisionPHID'
],
PhabricatorHash
::
digestForIndex
(
$row
[
'name'
]),
$row
[
'value'
]);
}
echo
pht
(
'Done.'
).
"
\n
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, May 7, 11:11 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
94877
Default Alt Text
20140226.dxcustom.1.fielddata.php (645 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment