Koha/installer/data/mysql/db_revs/210600033.pl
Jonathan Druart 81ee4a0e2f Bug 29093: (follow-up) DBRev 21.06.00.033
Had to decrease the number because of a patch removed from the branch but forgot to rename the dbrev file

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-15 13:17:43 +02:00

15 lines
446 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "29093",
description => "Add column article_requests.toc_request",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if( !column_exists('article_requests', 'toc_request') ) {
$dbh->do( q|
ALTER TABLE article_requests ADD COLUMN toc_request tinyint(4) NOT NULL DEFAULT 0 AFTER updated_on
|);
}
},
}