From 58ee841a73ea02d38d465e8c4663ab7bf509a62e Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 16 Sep 2009 07:43:18 -0400 Subject: [PATCH] DB rev 061: added ShowPatronImageInWebBasedSelfCheck (bug 3436) Signed-off-by: Galen Charlton --- admin/systempreferences.pl | 1 + installer/data/mysql/updatedatabase.pl | 7 +++++++ kohaversion.pl | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index e8071e9582..2ce1874c9b 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -149,6 +149,7 @@ $tabsysprefs{globalDueDate} = "Circulation"; $tabsysprefs{holdCancelLength} = "Circulation"; $tabsysprefs{itemBarcodeInputFilter} = "Circulation"; $tabsysprefs{WebBasedSelfCheck} = "Circulation"; +$tabsysprefs{ShowPatronImageInWebBasedSelfCheck} = "Circulation"; $tabsysprefs{CircControl} = "Circulation"; $tabsysprefs{finesCalendar} = "Circulation"; $tabsysprefs{previousIssuesDefaultSortOrder} = "Circulation"; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 9987b16ac4..10c3451fbe 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -2668,6 +2668,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = '3.01.00.061'; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('ShowPatronImageInWebBasedSelfCheck', '0', 'If ON, displays patron image when a patron uses web-based self-checkout', '', 'YesNo')"); + print "Upgrade to $DBversion done ( Added ShowPatronImageInWebBasedSelfCheck system preference )\n"; + SetVersion ($DBversion); +} + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table diff --git a/kohaversion.pl b/kohaversion.pl index d4ddd358a3..ec5684fb89 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -10,7 +10,7 @@ use strict; sub kohaversion { - our $VERSION = '3.01.00.060'; + our $VERSION = '3.01.00.061'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.5