From: Jonathan Druart Date: Wed, 6 Oct 2021 15:00:07 +0000 (+0200) Subject: Bug 18984: DB changes X-Git-Tag: v21.11.00~604 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=a5e0c1a3e985f21f3585c7ce6f7367696e054b32;p=koha-ffzg.git Bug 18984: DB changes Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- diff --git a/installer/data/mysql/atomicupdate/bug_18984.pl b/installer/data/mysql/atomicupdate/bug_18984.pl new file mode 100755 index 0000000000..5c92ad7313 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_18984.pl @@ -0,0 +1,12 @@ +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'}); + }, +}