mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 20:10:55 +01:00
e50eccf109
Summary: See discussion in D6955. This provides a table we can JOIN against to (effectively) "ORDER BY project name", populates it intially, and keeps it up to date as projects are edited. Test Plan: - Ran storage upgrade, verified projects populated into the table. - Edited a project, verified its entry updated. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D6957
16 lines
430 B
PHP
16 lines
430 B
PHP
<?php
|
|
|
|
// Update the "PROJ" search index, to:
|
|
//
|
|
// - Populate the index itself, which was added recently.
|
|
// - Populate the secondary object name index in Maniphest.
|
|
|
|
$root = dirname(phutil_get_library_root('phabricator'));
|
|
|
|
$command = new PhutilExecPassthru(
|
|
'php -f %s -- index --type PROJ',
|
|
$root.'/scripts/search/manage_search.php');
|
|
$err = $command->execute();
|
|
if ($err) {
|
|
throw new Exception("Update failed!");
|
|
}
|