2011-10-23 22:25:52 +02:00
|
|
|
<?php
|
|
|
|
|
2015-05-22 09:27:56 +02:00
|
|
|
echo pht('Indexing username tokens for typeaheads...')."\n";
|
2011-10-23 22:25:52 +02:00
|
|
|
|
2013-01-17 02:55:39 +01:00
|
|
|
$table = new PhabricatorUser();
|
|
|
|
$table->openTransaction();
|
|
|
|
$table->beginReadLocking();
|
|
|
|
|
|
|
|
$users = $table->loadAll();
|
2015-05-22 09:27:56 +02:00
|
|
|
echo pht('%d users to index', count($users));
|
2011-10-23 22:25:52 +02:00
|
|
|
foreach ($users as $user) {
|
|
|
|
$user->updateNameTokens();
|
2014-06-09 20:36:49 +02:00
|
|
|
echo '.';
|
2011-10-23 22:25:52 +02:00
|
|
|
}
|
|
|
|
|
2013-01-17 02:55:39 +01:00
|
|
|
$table->endReadLocking();
|
|
|
|
$table->saveTransaction();
|
2015-05-22 09:27:56 +02:00
|
|
|
echo "\n".pht('Done.')."\n";
|