From 8bb66a68e197860ee67071fbd0116c953ad275b6 Mon Sep 17 00:00:00 2001 From: Visman Date: Wed, 12 Sep 2018 00:38:37 +0700 Subject: [PATCH] * Fix structure of the search_cache table in install --- app/Models/Pages/Install.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/Pages/Install.php b/app/Models/Pages/Install.php index 62d802bc..9d4084e7 100644 --- a/app/Models/Pages/Install.php +++ b/app/Models/Pages/Install.php @@ -698,13 +698,13 @@ class Install extends Page // search_cache $schema = [ 'FIELDS' => [ - 'id' => ['INT(10) UNSIGNED', false, 0], - 'ident' => ['VARCHAR(200)', false, ''], 'search_data' => ['MEDIUMTEXT', true], + 'search_time' => ['INT(10) UNSIGNED', false, 0], + 'search_key' => ['VARCHAR(190)', false, '', 'bin'], ], - 'PRIMARY KEY' => ['id'], 'INDEXES' => [ - 'ident_idx' => ['ident(8)'], //???? + 'search_time_idx' => ['search_time'], + 'search_key_idx' => ['search_key'], ], 'ENGINE' => $this->DBEngine, ];