Bug 33053: Remove default value for tables item_groups and recalls
[koha.git] / installer / data / mysql / atomicupdate / bug_33053.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "33053",
5     description => "Remove default from biblio_id for item_groups and recalls tables",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         $dbh->do(q{
10             ALTER TABLE item_groups CHANGE COLUMN `biblio_id` `biblio_id` int(11) NOT NULL COMMENT 'id for the bibliographic record the group belongs to'`
11         });
12         $dbh->do(q{
13             ALTER TABLE recalls CHANGE COLUMN `biblio_id` `biblio_id` int(11) NOT NULL COMMENT 'Identifier for bibliographic record that has been recalled'
14         });
15     },
16 };