Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123046462
20140210.projcfield.1.blurb.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
Thu, Jul 24, 12:36
Size
688 B
Mime Type
text/x-php
Expires
Sat, Jul 26, 12:36 (2 d)
Engine
blob
Format
Raw Data
Handle
27621253
Attached To
rPH Phabricator
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
"Migrating project descriptions to custom storage...
\n
"
;
foreach
(
$rows
as
$row
)
{
$phid
=
$row
[
'projectPHID'
];
echo
"Migrating {$phid}...
\n
"
;
$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
"Done.
\n
"
;
Event Timeline
Log In to Comment