2013-05-03 15:49:29 -07:00
|
|
|
<?php
|
|
|
|
|
2015-05-22 17:27:56 +10:00
|
|
|
echo pht('Giving countdowns PHIDs');
|
2013-05-03 15:49:29 -07:00
|
|
|
$table = new PhabricatorCountdown();
|
|
|
|
$table->openTransaction();
|
|
|
|
|
|
|
|
foreach (new LiskMigrationIterator($table) as $countdown) {
|
|
|
|
if ($countdown->getPHID()) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
2014-06-09 11:36:49 -07:00
|
|
|
echo '.';
|
2013-05-03 15:49:29 -07:00
|
|
|
|
|
|
|
queryfx(
|
|
|
|
$countdown->establishConnection('w'),
|
|
|
|
'UPDATE %T SET phid = %s WHERE id = %d',
|
|
|
|
$countdown->getTableName(),
|
|
|
|
$countdown->generatePHID(),
|
|
|
|
$countdown->getID());
|
|
|
|
}
|
|
|
|
|
|
|
|
$table->saveTransaction();
|
2015-05-22 17:27:56 +10:00
|
|
|
echo "\n".pht('Done.')."\n";
|