From a1c4b8b293d80fab7473168f2d3adbe65b4abcaf Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 30 Dec 2015 14:56:28 +0000 Subject: [PATCH] Bug 8085 - DBrev 3.23.00.003 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- .../atomicupdate/bug_8085_rename_reserve_slip.sql | 3 --- installer/data/mysql/updatedatabase.pl | 13 +++++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_8085_rename_reserve_slip.sql diff --git a/Koha.pm b/Koha.pm index 0401d874a1..393abc525d 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.23.00.002"; +$VERSION = "3.23.00.003"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_8085_rename_reserve_slip.sql b/installer/data/mysql/atomicupdate/bug_8085_rename_reserve_slip.sql deleted file mode 100644 index dbf4b77ffa..0000000000 --- a/installer/data/mysql/atomicupdate/bug_8085_rename_reserve_slip.sql +++ /dev/null @@ -1,3 +0,0 @@ --- Rename 'Reserve slip' to 'Holds slip' to match Koha's terminology -UPDATE letter SET name = "Hold Slip" WHERE name = "Reserve Slip"; -UPDATE letter SET title = "Hold Slip" WHERE title = "Reserve Slip"; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 0103d07518..7e5e06b333 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11416,6 +11416,19 @@ if(CheckVersion($DBversion)) { SetVersion($DBversion); } +$DBversion = "3.23.00.003"; +if(CheckVersion($DBversion)) { + $dbh->do(q{ + UPDATE letter SET name = "Hold Slip" WHERE name = "Reserve Slip" + }); + $dbh->do(q{ + UPDATE letter SET title = "Hold Slip" WHERE title = "Reserve Slip"; + }); + + print "Upgrade to $DBversion done (Bug 8085 - Rename 'Reserve slip' to 'Hold slip')\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