From 26201f906c90d1596ad450a4ee788ccd301c24d4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 19 Apr 2018 12:26:21 -0300 Subject: [PATCH] Bug 19794: DBRev 17.12.00.032 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../atomicupdate/bug_19794_update_rlist.sql | 4 ---- installer/data/mysql/updatedatabase.pl | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 5 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_19794_update_rlist.sql diff --git a/Koha.pm b/Koha.pm index c1b8da3253..3367c947ba 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 = "17.12.00.031"; +$VERSION = "17.12.00.032"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_19794_update_rlist.sql b/installer/data/mysql/atomicupdate/bug_19794_update_rlist.sql deleted file mode 100644 index 05fe219594..0000000000 --- a/installer/data/mysql/atomicupdate/bug_19794_update_rlist.sql +++ /dev/null @@ -1,4 +0,0 @@ -UPDATE letter SET code = "SERIAL_ALERT" WHERE code = "RLIST"; -UPDATE letter SET name = "New serial issue" WHERE name = "Routing List"; -UPDATE subscription SET letter = "SERIAL_ALERT" WHERE letter = "RLIST"; --- print Bug 19794: Rename RLIST notice to SERIAL_ALERT diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 615871a994..3530f2ae60 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15840,6 +15840,22 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 11674 - Add system preference MarcFieldDocURL)\n"; } +$DBversion = '17.12.00.032'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q| + UPDATE letter SET code = "SERIAL_ALERT" WHERE code = "RLIST"; + |); + $dbh->do(q| + UPDATE letter SET name = "New serial issue" WHERE name = "Routing List"; + |); + $dbh->do(q| + UPDATE subscription SET letter = "SERIAL_ALERT" WHERE letter = "RLIST"; + |); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 19794 - Rename RLIST notice to SERIAL_ALERT)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.2