Koha/installer/data/mysql/db_revs/210600031.pl
Jonathan Druart 8e8f37e7ef Bug 18984: DBRev 21.06.00.031
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-07 15:49:01 +02:00

12 lines
431 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "18984",
description => "Remove NORMARC from search_marc_map.marc_type",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{DELETE FROM search_marc_map WHERE marc_type='normarc'});
$dbh->do(q{ALTER TABLE search_marc_map MODIFY `marc_type` enum('marc21','unimarc') COMMENT 'what MARC type this map is for'});
},
}