1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 23:55:26 +02:00

[ticket/11621] Add migration dropping MySQL search indexes.

Possibly time-consuming index-regeneration will be left to the user.

PHPBB3-11621
This commit is contained in:
Andreas Fischer 2013-10-11 00:23:04 +02:00
parent 6e9e07bae2
commit 39f77149b2

View File

@ -0,0 +1,38 @@
<?php
/**
*
* @package migration
* @copyright (c) 2013 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
*
*/
namespace phpbb\db\migration\data\v310;
class mysql_fulltext_drop extends \phpbb\db\migration\migration
{
static public function depends_on()
{
return array(
'\phpbb\db\migration\data\v310\dev',
);
}
public function update_schema()
{
if (strpos($this->db->sql_layer, 'mysql') === false)
{
return array();
}
return array(
'drop_keys' => array(
$this->table_prefix . 'posts' => array(
'post_subject',
'post_text',
'post_content',
),
),
);
}
}