Koha/installer/data/mysql/db_revs/210600031.pl
Jonathan Druart 36635845d2 Bug 29605: search_marc_map.marc_type
NOT NULL was missing when MODIFY

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-02-01 21:39:39 -10:00

12 lines
440 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') NOT NULL COMMENT 'what MARC type this map is for'});
},
}