Koha/installer/data/mysql/db_revs/211200054.pl
Fridolin Somers 350cf44770 Bug 23352: DBRev 21.12.00.054
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-05-10 15:17:18 -10:00

16 lines
418 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "23352",
description => "Adding new column 'subscription.ccode'",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if( !column_exists( 'subscription', 'ccode' ) ) {
$dbh->do(q{
ALTER TABLE subscription ADD COLUMN `ccode` varchar(80) DEFAULT NULL AFTER `mana_id`
});
}
},
};