Overview
Comment: | Fix upgrade |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA3-256: |
7c4545267c218e341c1f4efef4f376a5 |
User & Date: | bohwaz on 2022-06-03 20:49:22 |
Other Links: | branch diff | manifest | tags |
Context
2022-06-03
| ||
21:17 | Move templates, fix install check-in: 299f0f0889 user: bohwaz tags: dev | |
20:49 | Fix upgrade check-in: 7c4545267c user: bohwaz tags: dev | |
18:58 | Merge latest trunk/emails to dev check-in: 42f4f0980c user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/Upgrade.php from [63189e8538] to [a5fdaf0f68].
︙ | ︙ | |||
141 142 143 144 145 146 147 | $db->update('searches', ['content' => $content], 'id = ' . (int) $row->id); } $db->commitSchemaUpdate(); } | < < < | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | $db->update('searches', ['content' => $content], 'id = ' . (int) $row->id); } $db->commitSchemaUpdate(); } Plugin::upgradeAllIfRequired(); // Vérification de la cohérence des clés étrangères $db->foreignKeyCheck(); // Delete local cached files Utils::resetCache(USER_TEMPLATES_CACHE_ROOT); |
︙ | ︙ |
Modified src/include/lib/Garradin/Users/DynamicFields.php from [88ae4d3456] to [1fc4efc827].
︙ | ︙ | |||
458 459 460 461 462 463 464 465 466 467 468 469 470 471 | /** * Returns the SQL query used to create the search table and triggers * This table is useful to make LIKE searches on unicode columns */ public function getSQLSearchSchema(string $table_name = User::TABLE): ?string { $search_table = $table_name . '_search'; $columns = []; foreach ($this->_fields as $key => $cfg) { if ($cfg->type == 'text' || $cfg->list_table) { $columns[] = $key; | > | 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 | /** * Returns the SQL query used to create the search table and triggers * This table is useful to make LIKE searches on unicode columns */ public function getSQLSearchSchema(string $table_name = User::TABLE): ?string { $db = DB::getInstance(); $search_table = $table_name . '_search'; $columns = []; foreach ($this->_fields as $key => $cfg) { if ($cfg->type == 'text' || $cfg->list_table) { $columns[] = $key; |
︙ | ︙ |