Bug 8000: DBRev 18.12.00.067
authorNick Clemens <nick@bywatersolutions.com>
Mon, 29 Apr 2019 16:12:15 +0000 (16:12 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 29 Apr 2019 16:12:15 +0000 (16:12 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Koha.pm
installer/data/mysql/atomicupdate/Bug8000-SendAllEmailsTo.syspref.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index c936645..d5661f1 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 = "18.12.00.066";
+$VERSION = "18.12.00.067";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/Bug8000-SendAllEmailsTo.syspref.sql b/installer/data/mysql/atomicupdate/Bug8000-SendAllEmailsTo.syspref.sql
deleted file mode 100644 (file)
index 37bdb9c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
-VALUES ('SendAllEmailsTo','',NULL,'All emails will be redirected to this email if it is not empty','free');
\ No newline at end of file
index 6d69219..87512b4 100755 (executable)
@@ -18411,6 +18411,17 @@ if ( CheckVersion($DBversion) ) {
 "Upgrade to $DBversion done (Bug 8995 - Add new preferences for OpenURLResolvers)\n";
 }
 
+$DBversion = '18.12.00.067';
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q{
+        INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
+        VALUES ('SendAllEmailsTo','',NULL,'All emails will be redirected to this email if it is not empty','free');
+    });
+    SetVersion($DBversion);
+    print
+"Upgrade to $DBversion done (Bug 8000 - Add new preferences for SendAllEmailsTo)\n";
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.