Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91033914
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
Thu, Nov 7, 03:34
Size
531 B
Mime Type
text/x-php
Expires
Sat, Nov 9, 03:34 (2 d)
Engine
blob
Format
Raw Data
Handle
22182318
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