2014-08-09 00:50:36 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$table = new PhabricatorProjectColumn();
|
|
|
|
$conn_w = $table->establishConnection('w');
|
|
|
|
|
|
|
|
foreach (new LiskMigrationIterator($table) as $column) {
|
|
|
|
$id = $column->getID();
|
|
|
|
|
2015-05-22 09:27:56 +02:00
|
|
|
echo pht('Adjusting column %d...', $id)."\n";
|
2014-08-09 00:50:36 +02:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-22 09:27:56 +02:00
|
|
|
echo pht('Done.')."\n";
|