From f80d9e0e8b8b42f81a79b6c906714dbd9b9e43ad Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Wed, 7 Mar 2012 23:35:31 +0100 Subject: [PATCH] Bug 7284 follow-up, DBrev number --- installer/data/mysql/updatedatabase.pl | 24 ++++++++++++++++++++++++ kohaversion.pl | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 52d3a6f3da..0242d4a848 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -4741,6 +4741,30 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion($DBversion); } +$DBversion = "3.07.00.021"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do( + "INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('LinkerModule','Default','Chooses which linker module to use (see documentation).','Default|FirstMatchLastMatch','Choice');" + ); + $dbh->do( + "INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('LinkerOptions','','A pipe-separated list of options for the linker.','','free');" + ); + $dbh->do( + "INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('LinkerRelink',1,'If ON the authority linker will relink headings that have previously been linked every time it runs.',NULL,'YesNo');" + ); + $dbh->do( + "INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('LinkerKeepStale',0,'If ON the authority linker will keep existing authority links for headings where it is unable to find a match.',NULL,'YesNo');" + ); + $dbh->do( + "INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('AutoCreateAuthorities',0,'Automatically create authorities that do not exist when cataloging records.',NULL,'YesNo');" + ); + $dbh->do( + "INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('CatalogModuleRelink',0,'If OFF the linker will never replace the authids that are set in the cataloging module.',NULL,'YesNo');" + ); + print "Upgrade to $DBversion done (Enhancement 7284, improved authority matching, see wiki page for configuration update needed)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS =head2 DropAllForeignKeys($table) diff --git a/kohaversion.pl b/kohaversion.pl index 206c1cdc25..d62e7b1ffc 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts : use strict; sub kohaversion { - our $VERSION = '3.07.00.020'; + our $VERSION = '3.07.00.021'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.5