From 30e66a5eadbdda679bc71d11415ca31958256b24 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= 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 --- 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 20b808f5dd..4f050f6684 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.05.04.002"; +$VERSION = "16.05.04.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 60b1122288..42c8fdf161 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -12792,6 +12792,16 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "16.05.04.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