Koha/installer/data/mysql/db_revs/221200030.pl
Tomas Cohen Arazi 98ed8fe352
Bug 33053: DBRev 22.12.00.030
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-05 17:45:15 -03:00

16 lines
614 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "33053",
description => "Remove default from biblio_id for item_groups and recalls tables",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
ALTER TABLE item_groups CHANGE COLUMN `biblio_id` `biblio_id` int(11) NOT NULL COMMENT 'id for the bibliographic record the group belongs to'
});
$dbh->do(q{
ALTER TABLE recalls CHANGE COLUMN `biblio_id` `biblio_id` int(11) NOT NULL COMMENT 'Identifier for bibliographic record that has been recalled'
});
},
};