Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F613751
20190129.project.01.spaces.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
514 B
Referenced Files
None
Subscribers
None
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'
]);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, May 14, 9:13 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
109745
Default Alt Text
20190129.project.01.spaces.php (514 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment