From ef74f4c803da7f139995ab0d16ec3b3f70473e31 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 24 Oct 2016 11:52:46 +0200 Subject: [PATCH] Bug 17357: Update DB rev (3.22.11.003) Signed-off-by: Julian Maurice --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_17357.sql | 1 - installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_17357.sql diff --git a/Koha.pm b/Koha.pm index c61193b60d..ba2575f1e2 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 = "3.22.11.002"; +$VERSION = "3.22.11.003"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_17357.sql b/installer/data/mysql/atomicupdate/bug_17357.sql deleted file mode 100644 index 9cd6b102d4..0000000000 --- a/installer/data/mysql/atomicupdate/bug_17357.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE marc_subfield_structure SET authorised_value="WITHDRAWN" WHERE authorised_value="WTHDRAWN"; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 1e31435165..e90bba5a4b 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11810,6 +11810,16 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.22.11.003"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + UPDATE marc_subfield_structure SET authorised_value="WITHDRAWN" WHERE authorised_value="WTHDRAWN"; + }); + + print "Upgrade to $DBversion done (Bug 17357 - WTHDRAWN is still used in installer files)\n"; + SetVersion($DBversion); +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 -- 2.39.5