2011-10-23 22:25:52 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
echo "Indexing username tokens for typeaheads...\n";
|
|
|
|
|
2013-01-17 02:55:39 +01:00
|
|
|
$table = new PhabricatorUser();
|
|
|
|
$table->openTransaction();
|
|
|
|
$table->beginReadLocking();
|
|
|
|
|
|
|
|
$users = $table->loadAll();
|
2014-06-09 20:36:49 +02:00
|
|
|
echo count($users).' users to index';
|
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();
|
2011-10-23 22:25:52 +02:00
|
|
|
echo "\nDone.\n";
|