From f0132aeb715b068651b0ecce90921599a88ca50d Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 25 Nov 2009 12:18:44 +0100 Subject: [PATCH] dbRev 130 : CAS System preference Upgrade updatedatabase.pl and kohaversion --- installer/data/mysql/updatedatabase.pl | 7 ++++++- kohaversion.pl | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index ea7f84a607..3d4ecadd42 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -3291,7 +3291,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } -$DBversion = "3.01.00.128"; +$DBversion = "3.01.00.129"; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do(qq{ INSERT INTO `permissions` (`module_bit`, `code`, `description`) VALUES @@ -3303,6 +3303,11 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = "3.01.00.130"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('casAuthentication', '1', '', 'Enable or disable CAS authentication', 'YesNo'), ('casLogout', '1', '', 'Does a logout from Koha should also log out of CAS ?', 'YesNo'), ('casServerUrl', 'https://localhost:8443/cas', '', 'URL of the cas server', 'Free')"); + print "Upgrade done (added CAS authentication system preferences)\n"; +} =item DropAllForeignKeys($table) Drop all foreign keys of the table $table diff --git a/kohaversion.pl b/kohaversion.pl index 2ef16680a3..8d83cda725 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -10,7 +10,7 @@ use strict; sub kohaversion { - our $VERSION = '3.01.00.128'; + our $VERSION = '3.01.00.130'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.5