diff options
author | Nils Adermann <naderman@naderman.de> | 2013-09-19 17:03:05 +0200 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2013-09-19 17:03:05 +0200 |
commit | f205c4fad4c3a82cc4a47beb7f9a8025669a3acb (patch) | |
tree | 2b374794304612349c97aed4570ca7d5c3808946 /phpBB/phpbb/db/migration/data | |
parent | e998363468b4cdcfd4414f1511ffee768f7d0d37 (diff) | |
download | forums-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/phpbb/db/migration/data')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v310/namespaces.php | 30 |
1 files changed, 30 insertions, 0 deletions
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']))), + )), + ); + } +} |