mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[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
This commit is contained in:
parent
bc699f66cf
commit
d37c9cab6b
1 changed files with 10 additions and 2 deletions
|
@ -2209,11 +2209,19 @@ function change_database_data(&$no_updates, $version)
|
||||||
|
|
||||||
if (!isset($config['fulltext_postgres_ts_name']))
|
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');
|
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']))
|
if (!isset($config['load_jquery_cdn']))
|
||||||
{
|
{
|
||||||
set_config('load_jquery_cdn', 0);
|
set_config('load_jquery_cdn', 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue