Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98999717
20190129.project.01.spaces.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
Sat, Jan 18, 08:55
Size
514 B
Mime Type
text/x-php
Expires
Mon, Jan 20, 08:55 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23683562
Attached To
rPH Phabricator
20190129.project.01.spaces.php
View Options
<?php
// See PHI1046. The "spacePHID" column for milestones may have fallen out of
// sync; correct all existing values.
$table
=
new
PhabricatorProject
();
$conn
=
$table
->
establishConnection
(
'w'
);
$table_name
=
$table
->
getTableName
();
foreach
(
new
LiskRawMigrationIterator
(
$conn
,
$table_name
)
as
$project_row
)
{
queryfx
(
$conn
,
'UPDATE %R SET spacePHID = %ns
WHERE parentProjectPHID = %s AND milestoneNumber IS NOT NULL'
,
$table
,
$project_row
[
'spacePHID'
],
$project_row
[
'phid'
]);
}
Event Timeline
Log In to Comment