aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-07-07 16:19:53 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2012-07-07 16:19:53 -0400
commit1526886e3ec2b475bb7f578767f6430dbfa58097 (patch)
treee21dfc5b9eac9fd26b075bee1851efc47272d5e4 /phpBB/install/database_update.php
parentd9fd0cce0a5b323bff785af401e90370a3d73972 (diff)
parent70a0caee28559bd1bd52b4ecf9d7d33acd732fe2 (diff)
downloadforums-1526886e3ec2b475bb7f578767f6430dbfa58097.tar
forums-1526886e3ec2b475bb7f578767f6430dbfa58097.tar.gz
forums-1526886e3ec2b475bb7f578767f6430dbfa58097.tar.bz2
forums-1526886e3ec2b475bb7f578767f6430dbfa58097.tar.xz
forums-1526886e3ec2b475bb7f578767f6430dbfa58097.zip
Merge PR #832 branch 'dhruvgoel92/feature/postgresql-fulltext-search' into develop
* dhruvgoel92/feature/postgresql-fulltext-search: (28 commits) [feature/postgresql-fulltext-search] supports_phrase_search function [feature/postgresql-fulltext-search] use proper variable name [feature/postgresql-fulltext-search] each config is checked if it is set [feature/postgresql-fulltext-search] fix formatting [feature/postgresql-fulltext-search] add docblocks to functions [feature/postgresql-fulltext-search] remove phrase search code [feature/postgresql-fulltext-search] define access control specifiers [feature/postgresql-fulltext-search] use version_compare [feature/postgresql-fulltext-search] fix language key [feature/postgresql-fulltext-search] remove Readme [feature/postgresql-fulltext-search] removes pcre check [feature/postgresql-fulltext-search] fix language tsearch2 to text search [feature/postgresql-fulltext-search] remove mbstring support [feature/postgresql-fulltext-search] change language for pgsql < 8.3 [feature/postgresql-fulltext-search] use phpbb_pcre_utf8_support() [feature/postgresql-fulltext-search] fix variable name [feature/postgresql-fulltext-search] Fix version comparison for 9.0+. [feature/postgresql-fulltext-search] fixing license [feature/postgresql-fulltext-search] assign empty stats [feature/postgresql-fulltext-search] remove backward compatibility ...
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index b7490aca0b..594397c815 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -2245,6 +2245,21 @@ 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_ts_name', 'simple');
+ }
+
+ if (!isset($config['fulltext_postgres_min_word_len']))
+ {
+ set_config('fulltext_postgres_min_word_len', 4);
+ }
+
+ if (!isset($config['fulltext_postgres_max_word_len']))
+ {
+ set_config('fulltext_postgres_max_word_len', 254);
+ }
+
if (!isset($config['load_jquery_cdn']))
{
set_config('load_jquery_cdn', 0);