Bug 30250: Add ApplyFrameworkDefaults system preference
[koha.git] / installer / data / mysql / db_revs / 220600041.pl
1 use Modern::Perl;
2
3 return {
4     bug_number  => 30483,
5     description => "Make issues.borrowernumber and issues.itemnumber NOT NULL",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         $dbh->do(q{
10             ALTER TABLE issues
11                 MODIFY COLUMN borrowernumber int(11) NOT NULL COMMENT 'foreign key, linking this to the borrowers table for the patron this item was checked out to',
12                 MODIFY COLUMN itemnumber int(11) NOT NULL COMMENT 'foreign key, linking this to the items table for the item that was checked out'
13         });
14     },
15 };