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

(-)a/installer/data/mysql/updatedatabase.pl (-1 / +15 lines)
Lines 39-44 use C4::Installer; Link Here
39
use C4::Dates;
39
use C4::Dates;
40
use Koha::Database;
40
use Koha::Database;
41
use Koha;
41
use Koha;
42
use C4::Koha qw/GetSupportList/;
42
43
43
use MARC::Record;
44
use MARC::Record;
44
use MARC::File::XML ( BinaryEncoding => 'utf8' );
45
use MARC::File::XML ( BinaryEncoding => 'utf8' );
Lines 10761-10766 if ( CheckVersion($DBversion) ) { Link Here
10761
    SetVersion ($DBversion);
10762
    SetVersion ($DBversion);
10762
}
10763
}
10763
10764
10765
$DBversion = "3.19.00.XXX";
10766
if ( CheckVersion($DBversion) ) {
10767
    foreach my $format (@{ GetSupportList() }) {
10768
        $dbh->do(
10769
            q/INSERT INTO authorised_values (category, authorised_value, lib, lib_opac, imageurl)
10770
            VALUES (?, ?, ?, ?, ?)/,
10771
            {},
10772
            'SUGGEST_FORMAT', $format->{itemtype}, $format->{description}, $format->{description}, $format->{imageurl}
10773
        );
10774
    }
10775
    print "Upgrade to $DBversion done (Bug 9468: create new SUGGEST_FORMAT authorised_value list)\n";
10776
    SetVersion($DBversion);
10777
}
10778
10764
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
10779
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
10765
# SEE bug 13068
10780
# SEE bug 13068
10766
# if there is anything in the atomicupdate, read and execute it.
10781
# if there is anything in the atomicupdate, read and execute it.
10767
- 

Return to bug 9468