From 442734b4380dc7326bbd242d021a457acff0e18e Mon Sep 17 00:00:00 2001 From: Brendan Gallagher Date: Tue, 11 Oct 2016 04:52:13 +0000 Subject: [PATCH] Uping DBRev. Bug 17357 - WTHDRAWN is still used in installer files Signed-off-by: Brendan Gallagher Signed-off-by: Brendan Gallagher --- 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 ed872ef1f8..63ee3e11b3 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.031"; +$VERSION = "16.06.00.032"; 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 b0fdf41130..b642105c23 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -13083,6 +13083,16 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "16.06.00.032"; +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