From 33557a28477258f489207ad8825e14d07d7e6b99 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 2 Sep 2016 16:04:09 +0000 Subject: [PATCH] Bug 7045 - DBRev 16.06.00.016 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_7045.sql | 4 ---- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_7045.sql diff --git a/Koha.pm b/Koha.pm index 70158d11a4..09e550f1fb 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.015"; +$VERSION = "16.06.00.016"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_7045.sql b/installer/data/mysql/atomicupdate/bug_7045.sql deleted file mode 100644 index 01608ac005..0000000000 --- a/installer/data/mysql/atomicupdate/bug_7045.sql +++ /dev/null @@ -1,4 +0,0 @@ -update marc_subfield_structure set defaultvalue=REPLACE(defaultvalue, 'YYYY', '<>') where defaultvalue like "%YYYY%" and defaultvalue not like "%<>%"; -update marc_subfield_structure set defaultvalue=REPLACE(defaultvalue, 'MM', '<>') where defaultvalue like "%MM%" and defaultvalue not like "%<>%"; -update marc_subfield_structure set defaultvalue=REPLACE(defaultvalue, 'DD', '<
>') where defaultvalue like "%DD%" and defaultvalue not like "%<
>%"; -update marc_subfield_structure set defaultvalue=REPLACE(defaultvalue, 'user', '<>') where defaultvalue like "%user%" and defaultvalue not like "%<>%"; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6697919bde..0f50789b4c 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -12832,6 +12832,16 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "16.06.00.016"; +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