mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 10:12:41 +01:00
No-op old search indexing migrations which no longer run and have been obsoleted by upgrade "activities"
Summary: See T13253. After D20200 (which changed the task schema) these migrations no longer run, since the PHP code will expect a column to exist that won't exist until a `20190220.` migration runs. We don't need these migrations, since anyone upgrading through September 2017 gets a "rebuild search indexes" activity anyway (see T11932). Just no-op them. Test Plan: Grepped for `queueDocumentForIndexing()` in `autopatches/`, removed all of it. Reviewers: amckinley Reviewed By: amckinley Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Differential Revision: https://secure.phabricator.com/D20243
This commit is contained in:
parent
34e90d8f51
commit
ee2bc07c90
13 changed files with 13 additions and 127 deletions
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new PhabricatorOwnersPackage();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $package) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$package->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new AlmanacDevice();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $device) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$device->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new AlmanacService();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $service) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$service->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new AlmanacNetwork();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $network) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$network->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new HarbormasterBuildPlan();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $plan) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$plan->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new DrydockBlueprint();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $blueprint) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$blueprint->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new NuanceSource();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $source) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$source->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new PhabricatorBadgesBadge();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $badge) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$badge->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new PhabricatorPhurlURL();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $url) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$url->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new ConpherenceThread();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $thread) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$thread->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,21 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table_db = new PhabricatorDashboard();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table_db) as $dashboard) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$dashboard->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
$table_dbp = new PhabricatorDashboardPanel();
|
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table_dbp) as $panel) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$panel->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new PhabricatorProject();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $project) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$project->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$table = new PonderQuestion();
|
// This was an old reindexing migration that has been obsoleted. See T13253.
|
||||||
|
|
||||||
foreach (new LiskMigrationIterator($table) as $question) {
|
|
||||||
PhabricatorSearchWorker::queueDocumentForIndexing(
|
|
||||||
$question->getPHID(),
|
|
||||||
array(
|
|
||||||
'force' => true,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue