Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78426581
20140808.boardprop.3.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
Tue, Aug 20, 19:39
Size
531 B
Mime Type
text/x-php
Expires
Thu, Aug 22, 19:39 (2 d)
Engine
blob
Format
Raw Data
Handle
20042488
Attached To
rPH Phabricator
20140808.boardprop.3.php
View Options
<?php
$table
=
new
PhabricatorProjectColumn
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$column
)
{
$id
=
$column
->
getID
();
echo
pht
(
'Adjusting column %d...'
,
$id
).
"
\n
"
;
if
(
$column
->
getSequence
()
==
0
)
{
$properties
=
$column
->
getProperties
();
$properties
[
'isDefault'
]
=
true
;
queryfx
(
$conn_w
,
'UPDATE %T SET properties = %s WHERE id = %d'
,
$table
->
getTableName
(),
json_encode
(
$properties
),
$id
);
}
}
echo
pht
(
'Done.'
).
"
\n
"
;
Event Timeline
Log In to Comment