From 0aea75154a3bcbd1663b7bcb8af84fcc8fca5e6f Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 4 Jan 2016 12:53:08 +0000 Subject: [PATCH] Bug 15443 - DBrev 3.23.00.015 --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_15443.sql | 1 - installer/data/mysql/updatedatabase.pl | 12 +++++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_15443.sql diff --git a/Koha.pm b/Koha.pm index 6cfec00380..8ea5f2143e 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.014"; +$VERSION = "3.23.00.015"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_15443.sql b/installer/data/mysql/atomicupdate/bug_15443.sql deleted file mode 100644 index 742e99671c..0000000000 --- a/installer/data/mysql/atomicupdate/bug_15443.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE letter SET code = "HOLD_SLIP" WHERE code = "RESERVESLIP"; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index f0259342b9..6ed1223ebb 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11651,7 +11651,7 @@ if ( CheckVersion($DBversion) ) { $DBversion = "3.23.00.014"; if ( CheckVersion($DBversion) ) { $dbh->do(q{ - INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) + INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo') }); @@ -11659,6 +11659,16 @@ VALUES ('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts' SetVersion($DBversion); } +$DBversion = "3.23.00.015"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + UPDATE letter SET code = "HOLD_SLIP" WHERE code = "RESERVESLIP"; + }); + + print "Upgrade to $DBversion done (Bug 15443 - Re-code RESERVESLIP as 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