From 658638a48f20128ebe8cabae92c33af2a50abb16 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 1 Oct 2018 12:04:23 +0000 Subject: [PATCH] Bug 12747: DBRev 18.06.00.033 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- ...ug_12747-additional_fields_in_Z3950_search_result.sql | 1 - installer/data/mysql/updatedatabase.pl | 9 +++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_12747-additional_fields_in_Z3950_search_result.sql diff --git a/Koha.pm b/Koha.pm index e29c8aba23..26badbb34c 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.032"; +$VERSION = "18.06.00.033"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_12747-additional_fields_in_Z3950_search_result.sql b/installer/data/mysql/atomicupdate/bug_12747-additional_fields_in_Z3950_search_result.sql deleted file mode 100644 index d60bed3f9d..0000000000 --- a/installer/data/mysql/atomicupdate/bug_12747-additional_fields_in_Z3950_search_result.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('AdditionalFieldsInZ3950ResultSearch', '', 'NULL', 'Determines which MARC field/subfields are displayed in -Additional field- column in the result of a search Z3950', 'Free'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 49b6f33355..e5aa5eca6a 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -16453,6 +16453,15 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 5458: length of items.ccode disagrees with authorised_values.authorised_value)\n"; } +$DBversion = '18.06.00.033'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q| + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('AdditionalFieldsInZ3950ResultSearch', '', 'NULL', 'Determines which MARC field/subfields are displayed in -Additional field- column in the result of a search Z3950', 'Free') + |); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 12747 - Add AdditionalFieldsInZ3950ResultSearch system preference)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5