Bug 34843: Fix database comment inconsistency on toc_request
[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
12                 COMMENT 'borrower requested table of contents'
13                 AFTER updated_on
14             |);
15         }
16     },
17 }