1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Skip a very old project reindex migration

Summary:
During migration of very old installs, this script no longer runs properly since at HEAD it can't index against older schemas.

Since it's pretty fluff, just toss it. Installs can run `bin/search index --type PROJ` after finishing migrations to achieve the same effect, if necessary.

Test Plan: eyeballed it

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D8619
This commit is contained in:
epriestley 2014-03-26 13:51:49 -07:00
parent 1aad40b7bf
commit 543a313387

View file

@ -1,20 +1,5 @@
<?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.
}
// This previously updated the PROJ index, but HEAD can no longer reindex
// old PROJ records properly (since fields have been added to various places)
// and this migration is 6 months old and optional. Just skip it.