Marcel de Rooy
f809c272af
Bug 29093 had a dbrev without comment, but added comment to kohastructure. Test plan: Check (or remove) comment on article_requests.toc_request. Run dbrev. Check if comment was added (if you removed). Run t/db/Koha/Database/Commenter.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
17 lines
525 B
Perl
Executable file
17 lines
525 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
|
|
COMMENT 'borrower requested table of contents'
|
|
AFTER updated_on
|
|
|);
|
|
}
|
|
},
|
|
}
|