From a4d35d3de855b54caf88496776882ec8a92b4ecb 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 19.11.13.001 Signed-off-by: Andrew Fuerste-Henry (cherry picked from commit f40b7c2b6c9eb9d030a8344de4b6173a5e98f0fe) Signed-off-by: Victor Grousset/tuxayo --- ...27252_add_ElasticsearchCrossFields_preference.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 11 ++++++++++- 2 files changed, 10 insertions(+), 10 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 a200608632..035885fc4b 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -20762,13 +20762,22 @@ if ( CheckVersion( $DBversion ) ) { SetVersion( $DBversion ); } - $DBversion = "19.11.13.000"; if ( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (19.11.13 release)\n"; SetVersion( $DBversion ); } +$DBversion = '19.11.13.001'; +if( CheckVersion( $DBversion ) ) { + $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') + }); + print "Upgrade to $DBversion done (Bug 27252 - Add ElasticsearchCrossFields system preference)\n"; + SetVersion( $DBversion ); +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; -- 2.39.5