From 9708ffa1d3929535620c86063ad82e7aa9f22864 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 4 Nov 2015 12:45:51 -0300 Subject: [PATCH] Bug 12933: DBRev 3.21.00.050 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_12933.sql | 5 ----- installer/data/mysql/updatedatabase.pl | 13 +++++++++++++ 3 files changed, 14 insertions(+), 6 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_12933.sql diff --git a/Koha.pm b/Koha.pm index 01754de143..55515d9bb6 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.21.00.049"; +$VERSION = "3.21.00.050"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_12933.sql b/installer/data/mysql/atomicupdate/bug_12933.sql deleted file mode 100644 index 597cc01258..0000000000 --- a/installer/data/mysql/atomicupdate/bug_12933.sql +++ /dev/null @@ -1,5 +0,0 @@ -INSERT INTO letter ( module, code, branchcode, name, is_html, title, content, message_transport_type ) -VALUES ( 'circulation', 'OVERDUES_SLIP', '', 'Overdues Slip', '0', 'OVERDUES_SLIP', 'The following item(s) is/are currently overdue: - -"<>" by <>, <>, Barcode: <> Fine: <> -', 'print' ); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index b338e9b531..bf6ffb580d 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11282,6 +11282,19 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.21.00.050"; +if(CheckVersion($DBversion)) { + $dbh->do(q{ + INSERT INTO letter ( module, code, branchcode, name, is_html, title, content, message_transport_type ) + VALUES ( 'circulation', 'OVERDUES_SLIP', '', 'Overdues Slip', '0', 'OVERDUES_SLIP', 'The following item(s) is/are currently overdue: + +"<>" by <>, <>, Barcode: <> Fine: <> +', 'print' ) + }); + print "Upgrade to $DBversion done (Bug 12933: Add ability to print overdue slip from staff intranet)\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