Remove product literal strings in "pht()", part 21
[phabricator.git] / resources / sql / autopatches / 20140808.boardprop.3.php
blob947ce85f60522de8b4729c2a430d465ddf7b2f37
1 <?php
3 $table = new PhabricatorProjectColumn();
4 $conn_w = $table->establishConnection('w');
6 foreach (new LiskMigrationIterator($table) as $column) {
7 $id = $column->getID();
9 echo pht('Adjusting column %d...', $id)."\n";
10 if ($column->getSequence() == 0) {
12 $properties = $column->getProperties();
13 $properties['isDefault'] = true;
15 queryfx(
16 $conn_w,
17 'UPDATE %T SET properties = %s WHERE id = %d',
18 $table->getTableName(),
19 json_encode($properties),
20 $id);
24 echo pht('Done.')."\n";