mirror of https://github.com/MISP/MISP
chg: add index for attributes.timestamp, show index diagnostics in diagnostics page
parent
0a787304a6
commit
5fbb80d04d
|
@ -89,7 +89,7 @@ class AppModel extends Model
|
|||
63 => true, 64 => false, 65 => false, 66 => false, 67 => false, 68 => false,
|
||||
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,
|
||||
81 => false, 82 => false, 83 => false, 84 => false, 85 => false, 86 => false
|
||||
);
|
||||
|
||||
public $advanced_updates_description = array(
|
||||
|
@ -1684,6 +1684,8 @@ class AppModel extends Model
|
|||
$this->__addIndex('cryptographic_keys', 'parent_type');
|
||||
$this->__addIndex('cryptographic_keys', 'fingerprint');
|
||||
break;
|
||||
case 86:
|
||||
$this->__addIndex('attributes', 'timestamp');
|
||||
case 'fixNonEmptySharingGroupID':
|
||||
$sqlArray[] = 'UPDATE `events` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
||||
$sqlArray[] = 'UPDATE `attributes` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
||||
|
|
|
@ -178,13 +178,11 @@
|
|||
__('DataSource: ') . h($dataSource),
|
||||
$dataSource != 'Database/Mysql' ? 'times' : 'check'
|
||||
);
|
||||
if ($expectedDbVersion == $actualDbVersion) {
|
||||
echo $this->element('/healthElements/db_indexes_diagnostic', array(
|
||||
'columnPerTable' => $columnPerTable,
|
||||
'diagnostic' => $dbIndexDiagnostics,
|
||||
'indexes' => $indexes
|
||||
));
|
||||
}
|
||||
echo $this->element('/healthElements/db_indexes_diagnostic', array(
|
||||
'columnPerTable' => $columnPerTable,
|
||||
'diagnostic' => $dbIndexDiagnostics,
|
||||
'indexes' => $indexes
|
||||
));
|
||||
?>
|
||||
<script>
|
||||
var dbSchemaDiagnostics = <?php echo json_encode($dbSchemaDiagnostics); ?>;
|
||||
|
|
|
@ -8031,7 +8031,8 @@
|
|||
"category": false,
|
||||
"sharing_group_id": false,
|
||||
"first_seen": false,
|
||||
"last_seen": false
|
||||
"last_seen": false,
|
||||
"timestamp": false
|
||||
},
|
||||
"attribute_tags": {
|
||||
"id": true,
|
||||
|
@ -8469,5 +8470,5 @@
|
|||
"id": true
|
||||
}
|
||||
},
|
||||
"db_version": "85"
|
||||
"db_version": "86"
|
||||
}
|
Loading…
Reference in New Issue