From f40b7c2b6c9eb9d030a8344de4b6173a5e98f0fe Mon Sep 17 00:00:00 2001 From: Andrew Fuerste-Henry Date: Thu, 7 Jan 2021 19:58:23 +0000 Subject: [PATCH] Bug 27252: DBRev 20.05.06.001 Signed-off-by: Andrew Fuerste-Henry --- ..._27252_add_ElasticsearchCrossFields_preference.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/Bug_27252_add_ElasticsearchCrossFields_preference.perl diff --git a/installer/data/mysql/atomicupdate/Bug_27252_add_ElasticsearchCrossFields_preference.perl b/installer/data/mysql/atomicupdate/Bug_27252_add_ElasticsearchCrossFields_preference.perl deleted file mode 100644 index f42135d84a..0000000000 --- a/installer/data/mysql/atomicupdate/Bug_27252_add_ElasticsearchCrossFields_preference.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - # you can use $dbh here like: - $dbh->do(q{ - INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES - ('ElasticsearchCrossFields', '0', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo') - }); - NewVersion( $DBversion, 27252, "Add ElasticsearchCrossFields system preference"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 5a3045986f..481cbe4184 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22513,6 +22513,16 @@ if ( CheckVersion($DBversion) ) { SetVersion ($DBversion); } +$DBversion = '20.05.06.001'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + # you can use $dbh here like: + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('ElasticsearchCrossFields', '0', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo') + }); + NewVersion( $DBversion, 27252, "Add ElasticsearchCrossFields system preference"); +} + $DBversion = "20.05.07.000"; if ( CheckVersion($DBversion) ) { print "Upgrade to $DBversion done (20.05.07 release)\n"; -- 2.39.5