Bug 30130: (follow-up) Set BiC for 'Ulverscroft'
[koha.git] / installer / data / mysql / atomicupdate / bug_30130.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "30130",
5     description => "A standard to edi_account",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         unless ( column_exists('vendor_edi_accounts', 'standard') ) {
10             $dbh->do(q{
11                 ALTER TABLE vendor_edi_accounts ADD standard varchar(3) DEFAULT 'EUR' AFTER san
12             });
13
14             $dbh->do(q{
15                 UPDATE vendor_edi_accounts SET standard = 'BIC' WHERE san IN ( '5013546025065', '9377779308820', '5013546031839' )
16             });
17         }
18     },
19 };