Bug 9468: followup insert ignore
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
5ab919812b
commit
01b764c436
1 changed files with 4 additions and 4 deletions
|
@ -11324,10 +11324,10 @@ if ( CheckVersion($DBversion) ) {
|
||||||
$DBversion = "3.19.00.XXX";
|
$DBversion = "3.19.00.XXX";
|
||||||
if ( CheckVersion($DBversion) ) {
|
if ( CheckVersion($DBversion) ) {
|
||||||
foreach my $format (@{ GetSupportList() }) {
|
foreach my $format (@{ GetSupportList() }) {
|
||||||
$dbh->do(
|
$dbh->do(q|
|
||||||
q/INSERT INTO authorised_values (category, authorised_value, lib, lib_opac, imageurl)
|
INSERT IGNORE INTO authorised_values (category, authorised_value, lib, lib_opac, imageurl)
|
||||||
VALUES (?, ?, ?, ?, ?)/,
|
VALUES (?, ?, ?, ?, ?)
|
||||||
{},
|
|, {},
|
||||||
'SUGGEST_FORMAT', $format->{itemtype}, $format->{description}, $format->{description}, $format->{imageurl}
|
'SUGGEST_FORMAT', $format->{itemtype}, $format->{description}, $format->{description}, $format->{imageurl}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue