Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F950899
20140210.projcfield.1.blurb.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
671 B
Referenced Files
None
Subscribers
None
20140210.projcfield.1.blurb.php
View Options
<?php
$conn_w
=
id
(
new
PhabricatorProject
())->
establishConnection
(
'w'
);
$table_name
=
id
(
new
PhabricatorProjectCustomFieldStorage
())->
getTableName
();
$rows
=
new
LiskRawMigrationIterator
(
$conn_w
,
'project_profile'
);
echo
pht
(
'Migrating project descriptions to custom storage...'
).
"
\n
"
;
foreach
(
$rows
as
$row
)
{
$phid
=
$row
[
'projectPHID'
];
$desc
=
$row
[
'blurb'
];
if
(
strlen
(
$desc
))
{
queryfx
(
$conn_w
,
'INSERT IGNORE INTO %T (objectPHID, fieldIndex, fieldValue)
VALUES (%s, %s, %s)'
,
$table_name
,
$phid
,
PhabricatorHash
::
digestForIndex
(
'std:project:internal:description'
),
$desc
);
}
}
echo
pht
(
'Done.'
).
"
\n
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 2:27 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
222612
Default Alt Text
20140210.projcfield.1.blurb.php (671 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment