2013-05-04 00:49:29 +02:00
|
|
|
<?php
|
|
|
|
|
2014-06-09 20:36:49 +02:00
|
|
|
echo '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();
|
|
|
|
echo "\nDone.\n";
|