View | Details | Raw Unified | Return to bug 22188
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_22188_-_add_subscription-pubdatepatternformat.pl (-1 / +18 lines)
Line 0 Link Here
0
- 
1
use Modern::Perl;
2
3
return {
4
    bug_number => "22188",
5
    description => "Use publication date as numbering pattern",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        if( !column_exists( 'subscription', 'pubdatepatternformat' ) ) {
11
          $dbh->do(q{
12
              ALTER TABLE subscription ADD COLUMN `pubdatepatternformat` varchar(3) DEFAULT NULL AFTER `mana_id`
13
          });
14
15
          say $out "Added column 'subscription.pubdatepatternformat'";
16
        }
17
    },
18
};

Return to bug 22188