From d26b0668af62f0907a58108d4164ed27072317e9 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 13 Apr 2017 09:14:24 -0400 Subject: [PATCH] Bug 14537 - DBRev 16.12.00.024 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- .../bug_14537_-_rename_OverdueNoticeBcc_syspref.sql | 1 - installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_14537_-_rename_OverdueNoticeBcc_syspref.sql diff --git a/Koha.pm b/Koha.pm index 4b56b96264..e96dd952c4 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.12.00.023"; +$VERSION = "16.12.00.024"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_14537_-_rename_OverdueNoticeBcc_syspref.sql b/installer/data/mysql/atomicupdate/bug_14537_-_rename_OverdueNoticeBcc_syspref.sql deleted file mode 100644 index 59f211b43e..0000000000 --- a/installer/data/mysql/atomicupdate/bug_14537_-_rename_OverdueNoticeBcc_syspref.sql +++ /dev/null @@ -1 +0,0 @@ -UPDATE systempreferences SET variable="NoticeBcc" WHERE variable="OverdueNoticeBcc"; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 19b360d48e..4906137409 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -14108,6 +14108,16 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 9988 - Add AuthorityMergeLimit)\n"; } +$DBversion = '16.12.00.024'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + UPDATE systempreferences SET variable="NoticeBcc" WHERE variable="OverdueNoticeBcc"; + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 14537 - The system preference 'OverdueNoticeBcc' is mis-named.)\n"; +} + # 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.20.1