aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-09-19 17:03:05 +0200
committerNils Adermann <naderman@naderman.de>2013-09-19 17:03:05 +0200
commitf205c4fad4c3a82cc4a47beb7f9a8025669a3acb (patch)
tree2b374794304612349c97aed4570ca7d5c3808946 /phpBB
parente998363468b4cdcfd4414f1511ffee768f7d0d37 (diff)
downloadforums-f205c4fad4c3a82cc4a47beb7f9a8025669a3acb.tar
forums-f205c4fad4c3a82cc4a47beb7f9a8025669a3acb.tar.gz
forums-f205c4fad4c3a82cc4a47beb7f9a8025669a3acb.tar.bz2
forums-f205c4fad4c3a82cc4a47beb7f9a8025669a3acb.tar.xz
forums-f205c4fad4c3a82cc4a47beb7f9a8025669a3acb.zip
[ticket/11700] Change search backend db entry to namespaces
PHPBB3-11700
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/install/schemas/schema_data.sql2
-rw-r--r--phpBB/phpbb/db/migration/data/v310/namespaces.php30
2 files changed, 31 insertions, 1 deletions
diff --git a/phpBB/install/schemas/schema_data.sql b/phpBB/install/schemas/schema_data.sql
index 68f3c32f72..b5dea4836a 100644
--- a/phpBB/install/schemas/schema_data.sql
+++ b/phpBB/install/schemas/schema_data.sql
@@ -237,7 +237,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_block_size'
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_gc', '7200');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_interval', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_anonymous_interval', '0');
-INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_type', 'phpbb_search_fulltext_native');
+INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_type', 'phpbb\\search\\fulltext_native');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_store_results', '1800');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('secure_allow_deny', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('secure_allow_empty_referer', '1');
diff --git a/phpBB/phpbb/db/migration/data/v310/namespaces.php b/phpBB/phpbb/db/migration/data/v310/namespaces.php
new file mode 100644
index 0000000000..6da015d0da
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v310/namespaces.php
@@ -0,0 +1,30 @@
+<?php
+/**
+*
+* @package migration
+* @copyright (c) 2012 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
+*
+*/
+
+namespace phpbb\db\migration\data\v310;
+
+class namespaces extends \phpbb\db\migration\migration
+{
+ static public function depends_on()
+ {
+ return array(
+ '\phpbb\db\migration\data\v310\dev',
+ );
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('if', array(
+ (preg_match('#^phpbb_#', $this->config['search_type'])),
+ array('config.update', array('search_type', str_replace('phpbb_search_', 'phpbb\\search\\', $this->config['search_type']))),
+ )),
+ );
+ }
+}