Verzeichnisstruktur phpBB-3.1.0
- Veröffentlicht
- 27.10.2014
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
mysql_fulltext_drop.php
01 <?php
02 /**
03 *
04 * This file is part of the phpBB Forum Software package.
05 *
06 * @copyright (c) phpBB Limited <https://www.phpbb.com>
07 * @license GNU General Public License, version 2 (GPL-2.0)
08 *
09 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14 namespace phpbb\db\migration\data\v310;
15
16 class mysql_fulltext_drop extends \phpbb\db\migration\migration
17 {
18 public function effectively_installed()
19 {
20 // This migration is irrelevant for all non-MySQL DBMSes.
21 return strpos($this->db->get_sql_layer(), 'mysql') === false;
22 }
23
24 static public function depends_on()
25 {
26 return array(
27 '\phpbb\db\migration\data\v310\dev',
28 );
29 }
30
31 public function update_schema()
32 {
33 /*
34 * Drop FULLTEXT indexes related to MySQL fulltext search.
35 * Doing so is equivalent to dropping the search index from the ACP.
36 * Possibly time-consuming recreation of the search index (i.e.
37 * FULLTEXT indexes) is left as a task to the admin to not
38 * unnecessarily stall the upgrade process. The new search index will
39 * then require about 40% less table space (also see PHPBB3-11621).
40 */
41 return array(
42 'drop_keys' => array(
43 $this->table_prefix . 'posts' => array(
44 'post_subject',
45 'post_text',
46 'post_content',
47 ),
48 ),
49 );
50 }
51 }
52