mirror of https://github.com/MISP/MISP
chg: [internal] Drop unnecessary indexes from default_correlations table
parent
b53d8c828d
commit
ec209a98b9
|
@ -82,7 +82,8 @@ class AppModel extends Model
|
|||
69 => false, 70 => false, 71 => true, 72 => true, 73 => false, 74 => false,
|
||||
75 => false, 76 => true, 77 => false, 78 => false, 79 => false, 80 => false,
|
||||
81 => false, 82 => false, 83 => false, 84 => false, 85 => false, 86 => false,
|
||||
87 => false, 88 => false, 89 => false, 90 => false, 91 => false, 92 => false
|
||||
87 => false, 88 => false, 89 => false, 90 => false, 91 => false, 92 => false,
|
||||
93 => false,
|
||||
);
|
||||
|
||||
const ADVANCED_UPDATES_DESCRIPTION = array(
|
||||
|
@ -1834,6 +1835,22 @@ class AppModel extends Model
|
|||
case 92:
|
||||
$sqlArray[] = "ALTER TABLE users ADD `last_api_access` INT(11) DEFAULT 0;";
|
||||
break;
|
||||
case 93:
|
||||
$this->__dropIndex('default_correlations', 'distribution');
|
||||
$this->__dropIndex('default_correlations', 'object_distribution');
|
||||
$this->__dropIndex('default_correlations', 'event_distribution');
|
||||
$this->__dropIndex('default_correlations', 'sharing_group_id');
|
||||
$this->__dropIndex('default_correlations', 'object_sharing_group_id');
|
||||
$this->__dropIndex('default_correlations', 'event_sharing_group_id');
|
||||
$this->__dropIndex('default_correlations', 'org_id');
|
||||
$this->__dropIndex('default_correlations', '1_distribution');
|
||||
$this->__dropIndex('default_correlations', '1_object_distribution');
|
||||
$this->__dropIndex('default_correlations', '1_event_distribution');
|
||||
$this->__dropIndex('default_correlations', '1_sharing_group_id');
|
||||
$this->__dropIndex('default_correlations', '1_object_sharing_group_id');
|
||||
$this->__dropIndex('default_correlations', '1_event_sharing_group_id');
|
||||
$this->__dropIndex('default_correlations', '1_org_id');
|
||||
break;
|
||||
case 'fixNonEmptySharingGroupID':
|
||||
$sqlArray[] = 'UPDATE `events` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
||||
$sqlArray[] = 'UPDATE `attributes` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
||||
|
|
|
@ -8690,37 +8690,14 @@
|
|||
"model_id": false
|
||||
},
|
||||
"default_correlations": {
|
||||
"id": true,
|
||||
"attribute_id": false,
|
||||
"1_attribute_id": false,
|
||||
"value_id": false,
|
||||
"event_id": false,
|
||||
"object_id": false,
|
||||
"org_id": false,
|
||||
"distribution": false,
|
||||
"object_distribution": false,
|
||||
"event_distribution": false,
|
||||
"sharing_group_id": false,
|
||||
"object_sharing_group_id": false,
|
||||
"event_sharing_group_id": false,
|
||||
"1_event_id": false,
|
||||
"1_object_id": false,
|
||||
"1_org_id": false,
|
||||
"1_distribution": false,
|
||||
"1_object_distribution": false,
|
||||
"1_event_distribution": false,
|
||||
"1_sharing_group_id": false,
|
||||
"1_object_sharing_group_id": false,
|
||||
"1_event_sharing_group_id": false
|
||||
},
|
||||
"events": {
|
||||
"attribute_id": false,
|
||||
"event_id": false,
|
||||
"object_id": false,
|
||||
"id": true,
|
||||
"uuid": true,
|
||||
"info": false,
|
||||
"sharing_group_id": false,
|
||||
"org_id": false,
|
||||
"orgc_id": false,
|
||||
"extends_uuid": false
|
||||
"value_id": false
|
||||
},
|
||||
"event_blocklists": {
|
||||
"id": true,
|
||||
|
@ -9099,5 +9076,5 @@
|
|||
"timestamp": false
|
||||
}
|
||||
},
|
||||
"db_version": "92"
|
||||
"db_version": "93"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue