Koha/installer/data/mysql/db_revs/230600008.pl
Tomas Cohen Arazi 6316093224
Bug 33039: DBRev 23.06.00.008
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-07-14 08:59:45 -03:00

18 lines
608 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "33039",
description => "Add published on template to serial subscriptions table",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if( !column_exists( 'subscription', 'published_on_template' ) ) {
$dbh->do(q{
ALTER TABLE subscription
ADD COLUMN `published_on_template` TEXT DEFAULT NULL COMMENT 'Template Toolkit syntax to generate the default "Published on (text)" field when receiving an issue this serial'
AFTER `ccode`
});
}
},
};