Explorar o código

* Fix structure of the search_cache table in install

Visman %!s(int64=6) %!d(string=hai) anos
pai
achega
8bb66a68e1
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      app/Models/Pages/Install.php

+ 4 - 4
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,
         ];