From aef77798a98ed89ebf2200a23b7bfc17760d77e2 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 2 Sep 2016 16:09:23 +0000 Subject: [PATCH] Bug 7045 - DBRev 16.06.00.017 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- ...10848-add_OPACSuggestionMandatoryFields_syspref.sql | 1 - installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_10848-add_OPACSuggestionMandatoryFields_syspref.sql diff --git a/Koha.pm b/Koha.pm index 09e550f1fb..8bc4d72ac7 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 = "16.06.00.016"; +$VERSION = "16.06.00.017"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_10848-add_OPACSuggestionMandatoryFields_syspref.sql b/installer/data/mysql/atomicupdate/bug_10848-add_OPACSuggestionMandatoryFields_syspref.sql deleted file mode 100644 index eb0211a0ca..0000000000 --- a/installer/data/mysql/atomicupdate/bug_10848-add_OPACSuggestionMandatoryFields_syspref.sql +++ /dev/null @@ -1 +0,0 @@ -INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('OPACSuggestionMandatoryFields','title','','Define the mandatory fields for a patron purchase suggestions made via OPAC.','multiple'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 0f50789b4c..35d4cdf697 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -12842,6 +12842,16 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "16.06.00.017"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('OPACSuggestionMandatoryFields','title','','Define the mandatory fields for a patron purchase suggestions made via OPAC.','multiple'); + }); + + print "Upgrade to $DBversion done (Bug 7045 - Default-value substitution inconsistent)\n"; + SetVersion($DBversion); +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5