Bug 29012: Fix existing update to prevent inserting incorrect data
[koha.git] / installer / data / mysql / db_revs / 210600033.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "29093",
5     description => "Add column article_requests.toc_request",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         if( !column_exists('article_requests', 'toc_request') ) {
10             $dbh->do( q|
11                 ALTER TABLE article_requests ADD COLUMN toc_request tinyint(4) NOT NULL DEFAULT 0 AFTER updated_on
12             |);
13         }
14     },
15 }