Bug 33039: Add ability to specify a template for serial subscription "Published on...
[koha.git] / installer / data / mysql / atomicupdate / bug_33039.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "33039",
5     description => "Add published on template to serial subscriptions table",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9
10         if( !column_exists( 'subscription', 'published_on_template' ) ) {
11           $dbh->do(q{
12               ALTER TABLE subscription
13               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'
14               AFTER `ccode`
15           });
16         }
17     },
18 };