diff --git a/app/Model/AppModel.php b/app/Model/AppModel.php index 5d21e9b29..6f8c11303 100644 --- a/app/Model/AppModel.php +++ b/app/Model/AppModel.php @@ -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;'; diff --git a/app/View/Elements/healthElements/db_schema_diagnostic.ctp b/app/View/Elements/healthElements/db_schema_diagnostic.ctp index 351704f3f..38973cafb 100644 --- a/app/View/Elements/healthElements/db_schema_diagnostic.ctp +++ b/app/View/Elements/healthElements/db_schema_diagnostic.ctp @@ -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 + )); ?>