1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-15 18:10:53 +01:00
phorge-phorge/resources/sql/patches/20130912.maniphest.4.fillindex.php
epriestley b38a688cf7 Ignore failures when rebuilding project search index in Maniphest migration
Summary: See <https://github.com/facebook/phabricator/issues/386>. Just ignore any issues here, they aren't worth complaining about.

Auditors: btrahan
2013-09-13 09:39:46 -07:00

20 lines
720 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) {
// NOTE: Just ignore this. The indexing script fails if there are no projects
// yet, and even if it actually fails with something terrible and explosive
// it isn't very concerning. The worst case here is that "group by projects"
// doesn't work perfectly in Maniphest, and re-running the script later on
// can fix it.
}