[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/resources/sql/patches/ -> 20130502.countdownrevamp2.php (source)

   1  <?php
   2  
   3  echo 'Giving countdowns PHIDs';
   4  $table = new PhabricatorCountdown();
   5  $table->openTransaction();
   6  
   7  foreach (new LiskMigrationIterator($table) as $countdown) {
   8    if ($countdown->getPHID()) {
   9      continue;
  10    }
  11  
  12    echo '.';
  13  
  14    queryfx(
  15      $countdown->establishConnection('w'),
  16      'UPDATE %T SET phid = %s WHERE id = %d',
  17      $countdown->getTableName(),
  18      $countdown->generatePHID(),
  19      $countdown->getID());
  20  }
  21  
  22  $table->saveTransaction();
  23  echo "\nDone.\n";


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