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

(-)a/installer/data/mysql/atomicupdate/bug_37856.pl (-1 / +19 lines)
Line 0 Link Here
0
- 
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "37856",
6
    description => "Add service_platform column to erm_usage_data_providers",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        if( !column_exists( 'erm_usage_data_providers', 'service_platform' ) ) {
12
          $dbh->do(q{
13
              ALTER TABLE erm_usage_data_providers ADD COLUMN `service_platform` varchar(80) DEFAULT NULL COMMENT 'platform if provider requires it' AFTER `report_types`
14
          });
15
          say_info( $out, "Bug 37856 - Added service_platform column to table 'erm_usage_data_providers'" );
16
        }
17
        say_success( $out, "Bug 37856 - Done" );
18
    },
19
};

Return to bug 37856