Bug 14537 - DBRev 16.12.00.024
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 13 Apr 2017 13:14:24 +0000 (09:14 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 13 Apr 2017 13:14:24 +0000 (09:14 -0400)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_14537_-_rename_OverdueNoticeBcc_syspref.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 4b56b96..e96dd95 100644 (file)
--- 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 (file)
index 59f211b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-UPDATE systempreferences SET variable="NoticeBcc" WHERE variable="OverdueNoticeBcc";
index 19b360d..4906137 100755 (executable)
@@ -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.