From 0ecd8c2f8cbe50407babed026a462e98592a3010 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 29 Apr 2019 16:12:15 +0000 Subject: [PATCH] Bug 8000: DBRev 18.12.00.067 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../atomicupdate/Bug8000-SendAllEmailsTo.syspref.sql | 2 -- installer/data/mysql/updatedatabase.pl | 11 +++++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/Bug8000-SendAllEmailsTo.syspref.sql diff --git a/Koha.pm b/Koha.pm index c936645b85..d5661f164b 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 = "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 index 37bdb9cd40..0000000000 --- a/installer/data/mysql/atomicupdate/Bug8000-SendAllEmailsTo.syspref.sql +++ /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 diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6d69219162..87512b4936 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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. -- 2.20.1