Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99438119
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
Fri, Jan 24, 13:53
Size
513 B
Mime Type
text/x-php
Expires
Sun, Jan 26, 13:53 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23800922
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
"Adjusting column {$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
"Done.
\n
"
;
Event Timeline
Log In to Comment