Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93620955
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
Sat, Nov 30, 05:26
Size
531 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 05:26 (2 d)
Engine
blob
Format
Raw Data
Handle
22675175
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