mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 09:12:41 +01:00
271d6605a9
Summary: countdown_timer table named to countdown. datepoint and related stuff renamed to epoch. Countdowns now have phids. Various UI items changed from timer to countdown. Test Plan: Did run storage upgrade and added some countdowns. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin, AnhNhan Maniphest Tasks: T2624 Differential Revision: https://secure.phabricator.com/D5812
23 lines
463 B
PHP
23 lines
463 B
PHP
<?php
|
|
|
|
echo "Giving countdowns PHIDs";
|
|
$table = new PhabricatorCountdown();
|
|
$table->openTransaction();
|
|
|
|
foreach (new LiskMigrationIterator($table) as $countdown) {
|
|
if ($countdown->getPHID()) {
|
|
continue;
|
|
}
|
|
|
|
echo ".";
|
|
|
|
queryfx(
|
|
$countdown->establishConnection('w'),
|
|
'UPDATE %T SET phid = %s WHERE id = %d',
|
|
$countdown->getTableName(),
|
|
$countdown->generatePHID(),
|
|
$countdown->getID());
|
|
}
|
|
|
|
$table->saveTransaction();
|
|
echo "\nDone.\n";
|