View | Details | Raw Unified | Return to bug 8207
Collapse All | Expand All

(-)a/installer/data/mysql/updatedatabase.pl (-3 / +11 lines)
Lines 5569-5576 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
5569
$DBversion = "3.09.00.028";
5569
$DBversion = "3.09.00.028";
5570
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5570
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
5571
    unless ( C4::Context->preference('marcflavour') eq 'UNIMARC' ) {
5571
    unless ( C4::Context->preference('marcflavour') eq 'UNIMARC' ) {
5572
        my %referencetypes = (  '00' => 'PERSO_CODE',
5572
        my %referencetypes = (  '00' => 'PERSO_NAME',
5573
                                '10' => 'ORGO_CODE',
5573
                                '10' => 'CORPO_NAME',
5574
                                '11' => 'MEETI_NAME',
5574
                                '11' => 'MEETI_NAME',
5575
                                '30' => 'UNIF_TITLE',
5575
                                '30' => 'UNIF_TITLE',
5576
                                '48' => 'CHRON_TERM',
5576
                                '48' => 'CHRON_TERM',
Lines 5635-5640 if(C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5635
    SetVersion($DBversion);
5635
    SetVersion($DBversion);
5636
}
5636
}
5637
5637
5638
$DBversion ="3.09.00.XXX";
5639
if(C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5640
    $dbh->do("UPDATE auth_subfield_structure SET frameworkcode = 'PERSO_NAME' WHERE frameworkcode = 'PERSO_CODE'");
5641
    $dbh->do("UPDATE auth_subfield_structure SET frameworkcode = 'CORPO_NAME' WHERE frameworkcode = 'ORGO_CODE'");
5642
    print "Upgrade to $DBversion done (Bug 8207: correct typo in authority types)\n";
5643
    SetVersion($DBversion);
5644
}
5645
5646
5638
=head1 FUNCTIONS
5647
=head1 FUNCTIONS
5639
5648
5640
=head2 TableExists($table)
5649
=head2 TableExists($table)
5641
- 

Return to bug 8207