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