aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruv Goel <dhruv.goel92@gmail.com>2012-06-07 01:11:12 +0530
committerDhruv Goel <dhruv.goel92@gmail.com>2012-07-05 21:11:22 +0530
commit8a659964e4788144fde24c4f43362ab2450582f8 (patch)
tree3d9c704becfb5ac703e52ed70c0ca83fcdd72802
parent9f4219b1c7e74f86134b51fa637b513c5a670b5f (diff)
downloadforums-8a659964e4788144fde24c4f43362ab2450582f8.tar
forums-8a659964e4788144fde24c4f43362ab2450582f8.tar.gz
forums-8a659964e4788144fde24c4f43362ab2450582f8.tar.bz2
forums-8a659964e4788144fde24c4f43362ab2450582f8.tar.xz
forums-8a659964e4788144fde24c4f43362ab2450582f8.zip
[feature/postgresql-fulltext-search] database changes in database_update
config entries are now added by database_update.php as well. PostgreSQL will work during update too. PHPBB3-9730
-rw-r--r--phpBB/install/database_update.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index 665db1f2f0..3716c03030 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -2207,6 +2207,13 @@ function change_database_data(&$no_updates, $version)
set_config('search_type', 'phpbb_search_' . $config['search_type']);
}
+ if (!isset($config['fulltext_postgres_ts_name']))
+ {
+ set_config('fulltext_postgres_max_word_len', 254);
+ set_config('fulltext_postgres_min_word_len', 4);
+ set_config('fulltext_postgres_ts_name', 'simple');
+ }
+
if (!isset($config['load_jquery_cdn']))
{
set_config('load_jquery_cdn', 0);