[Koha-patches] [PATCH 2/2] Follow up for Bu 6390: Add upatedatabase.pl

Nicole C. Engard nengard at bywatersolutions.com
Tue Sep 6 21:04:31 CEST 2011


This patch updated the language of the preference and added to
updatedatabase.pl which was missing in the last patch.
---
 installer/data/mysql/updatedatabase.pl |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl
index bdfc9ac..844484e 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -4439,6 +4439,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.05.00.XXX";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+    $dbh->do("INSERT INTO `systempreferences` (variable,value,options,explanation,type) VALUES ('AcqViewBaskets','user','user|branch|all','Define which baskets a user is allowed to view: his own only, any within his branch or all','Choice')");
+    print "Upgrade to $DBversion done (Add syspref AcqViewBaskets)\n";
+    SetVersion($DBversion);
+}
+
 
 =head1 FUNCTIONS
 
-- 
1.7.2.3



More information about the Koha-patches mailing list