[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/resources/sql/autopatches/ -> 20140108.ddbpname.2.php (source)

   1  <?php
   2  
   3  echo "Adding names to Drydock blueprints.\n";
   4  
   5  $table = new DrydockBlueprint();
   6  $conn_w = $table->establishConnection('w');
   7  $iterator = new LiskMigrationIterator($table);
   8  foreach ($iterator as $blueprint) {
   9    $id = $blueprint->getID();
  10  
  11    echo "Populating blueprint {$id}...\n";
  12  
  13    if (!strlen($blueprint->getBlueprintName())) {
  14      queryfx(
  15        $conn_w,
  16        'UPDATE %T SET blueprintName = %s WHERE id = %d',
  17        $table->getTableName(),
  18        pht('Blueprint %s', $id),
  19        $id);
  20    }
  21  }
  22  
  23  echo "Done.\n";


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1