Koha/installer/data/mysql/db_revs/221200044.pl
Tomas Cohen Arazi 52d510b1e6
Bug 11844: DBRev 22.12.00.044
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-16 09:34:12 -03:00

18 lines
609 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => '11844',
description => 'Add column additional_fields.marcfield_mode',
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
unless ( column_exists( 'additional_fields', 'marcfield_mode' ) ) {
$dbh->do(q{
ALTER TABLE additional_fields
ADD COLUMN marcfield_mode ENUM('get', 'set') NOT NULL DEFAULT 'get' COMMENT 'mode of operation (get or set) for marcfield' AFTER marcfield
});
}
say $out "Added column 'additional_fields.marcfield";
},
};