diff options
| author | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-06-26 01:36:34 +0530 |
|---|---|---|
| committer | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-07-05 21:17:29 +0530 |
| commit | d37c9cab6bc8444685c642b4a6bce6108f054acc (patch) | |
| tree | 825947f682a9f5da7691af15ab929d0eaf2a95aa | |
| parent | bc699f66cf8c4f043f3b62da5e50c3acf198084e (diff) | |
| download | forums-d37c9cab6bc8444685c642b4a6bce6108f054acc.tar forums-d37c9cab6bc8444685c642b4a6bce6108f054acc.tar.gz forums-d37c9cab6bc8444685c642b4a6bce6108f054acc.tar.bz2 forums-d37c9cab6bc8444685c642b4a6bce6108f054acc.tar.xz forums-d37c9cab6bc8444685c642b4a6bce6108f054acc.zip | |
[feature/postgresql-fulltext-search] each config is checked if it is set
In database_update.php each config value of postgres fulltext search is
first checked whether it already exists or not and then added.
PHPBB3-9730
| -rw-r--r-- | phpBB/install/database_update.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index 3716c03030..a6e5921b63 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -2209,11 +2209,19 @@ function change_database_data(&$no_updates, $version) 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['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); |
