From 9c02633ee7c56cf2c6e5992b98c4342363432d9c Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 16 Nov 2018 12:31:51 +0000 Subject: [PATCH] Bug 20244: DBRev 18.06.00.061 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- ...bug_19893_elasticsearch_index_status_sysprefs.perl | 11 ----------- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_19893_elasticsearch_index_status_sysprefs.perl diff --git a/Koha.pm b/Koha.pm index 46ba9220fb..9cd9e4723c 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "18.06.00.060"; +$VERSION = "18.06.00.061"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_19893_elasticsearch_index_status_sysprefs.perl b/installer/data/mysql/atomicupdate/bug_19893_elasticsearch_index_status_sysprefs.perl deleted file mode 100644 index ed95da0f05..0000000000 --- a/installer/data/mysql/atomicupdate/bug_19893_elasticsearch_index_status_sysprefs.perl +++ /dev/null @@ -1,11 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if ( CheckVersion($DBversion) ) { - $dbh->do(q{ - INSERT IGNORE INTO `systempreferences` (`variable`,`value`,`explanation`,`options`,`type`) VALUES - ('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL), - ('ElasticsearchIndexStatus_authorities', '0', 'Authorities index status', NULL, NULL) - }); - - SetVersion($DBversion); - print "Upgrade to $DBversion done (Bug 19893 - Add elasticsearch index status preferences)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 2ec956e331..a97b92a056 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -17111,6 +17111,17 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 15836 - Add class_sort_rules.split_routine and split_regex)\n"; } +$DBversion = '18.06.00.061'; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO `systempreferences` (`variable`,`value`,`explanation`,`options`,`type`) VALUES + ('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL), + ('ElasticsearchIndexStatus_authorities', '0', 'Authorities index status', NULL, NULL) + }); + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 19893 - Add elasticsearch index status preferences)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5