[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 $table = new PhabricatorProjectColumn(); 4 $conn_w = $table->establishConnection('w'); 5 6 foreach (new LiskMigrationIterator($table) as $column) { 7 $id = $column->getID(); 8 9 echo "Adjusting column {$id}...\n"; 10 if ($column->getSequence() == 0) { 11 12 $properties = $column->getProperties(); 13 $properties['isDefault'] = true; 14 15 queryfx( 16 $conn_w, 17 'UPDATE %T SET properties = %s WHERE id = %d', 18 $table->getTableName(), 19 json_encode($properties), 20 $id); 21 } 22 } 23 24 echo "Done.\n";
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |