From fa510d978adf24c21d9981d76f036fbdfab4a26c Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Thu, 23 Aug 2012 09:23:50 -0400 Subject: [PATCH] Bug 8207 follow-up: correct typo in authority types Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain --- installer/data/mysql/updatedatabase.pl | 12 ++++++++++-- kohaversion.pl | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 99610d7077..6eb9c749dc 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -5569,8 +5569,8 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $DBversion = "3.09.00.028"; if (C4::Context->preference("Version") < TransformToNum($DBversion)) { unless ( C4::Context->preference('marcflavour') eq 'UNIMARC' ) { - my %referencetypes = ( '00' => 'PERSO_CODE', - '10' => 'ORGO_CODE', + my %referencetypes = ( '00' => 'PERSO_NAME', + '10' => 'CORPO_NAME', '11' => 'MEETI_NAME', '30' => 'UNIF_TITLE', '48' => 'CHRON_TERM', @@ -5664,6 +5664,14 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { SetVersion ($DBversion); } +$DBversion ="3.09.00.034"; +if(C4::Context->preference("Version") < TransformToNum($DBversion) ) { + $dbh->do("UPDATE auth_subfield_structure SET frameworkcode = 'PERSO_NAME' WHERE frameworkcode = 'PERSO_CODE'"); + $dbh->do("UPDATE auth_subfield_structure SET frameworkcode = 'CORPO_NAME' WHERE frameworkcode = 'ORGO_CODE'"); + print "Upgrade to $DBversion done (Bug 8207: correct typo in authority types)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS =head2 TableExists($table) diff --git a/kohaversion.pl b/kohaversion.pl index f62b794463..b58966bac1 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.09.00.033'; + our $VERSION = '3.09.00.034'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.5