From 89915ffb345ef14078cf66c06052e1e0760fc273 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Fri, 30 May 2008 11:17:21 -0500 Subject: [PATCH] DB Revision 087 --- installer/data/mysql/updatedatabase.pl | 8 ++++++++ kohaversion.pl | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index d904e7ec99..5c71c40d64 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -1603,6 +1603,14 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = "3.00.00.087"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `systempreferences` VALUES ('AutoEmailOpacUser','0','','Sends notification emails containing new account details to patrons - when account is created.','YesNo')" ); + $dbh->do("INSERT INTO `systempreferences` VALUES ('AutoEmailPrimaryAddress','OFF','email|emailpro|B_email|cardnumber|OFF','Defines the default email address where \'Account Details\' emails are sent.','Choice')"); + print "Upgrade to $DBversion done (added 2 new 'AutoEmailOpacUser' sysprefs)\n"; + SetVersion ($DBversion); +} + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table diff --git a/kohaversion.pl b/kohaversion.pl index c284f4b080..9ab4c2cfdb 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -10,7 +10,7 @@ use strict; sub kohaversion { - our $VERSION = "3.00.00.086"; + our $VERSION = "3.00.00.087"; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.5