mirror of https://github.com/MISP/MISP
Added the reindexing of all tables to the upgrade procedures.
parent
85db894063
commit
22b02c4075
|
@ -2273,9 +2273,14 @@ class Server extends AppModel {
|
|||
foreach ($orgMapping as $old => $new) {
|
||||
$this->query('UPDATE `correlations` SET `org_id` = "' . $new . '", `org` = "" WHERE `org` = "' . $old . '";');
|
||||
}
|
||||
if (Configure::read('MISP.background_jobs') && $jobId) {
|
||||
$this->Job->saveField('progress', 60);
|
||||
$this->Job->saveField('message', 'Correlations rebuilt. Indexing all tables.');
|
||||
}
|
||||
$this->updateDatabase('indexTables');
|
||||
if (Configure::read('MISP.background_jobs') && $jobId) {
|
||||
$this->Job->saveField('progress', 100);
|
||||
$this->Job->saveField('message', 'Correlations rebuilt');
|
||||
$this->Job->saveField('message', 'Upgrade complete.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue