From 2e4b1ca42f7a940e8329ed860dda102deb629db0 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 18 Sep 2024 15:57:43 +0000 Subject: [PATCH] Bug 37856: atomicupdate Signed-off-by: David Nind Signed-off-by: Katrin Fischer --- .../data/mysql/atomicupdate/bug_37856.pl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_37856.pl diff --git a/installer/data/mysql/atomicupdate/bug_37856.pl b/installer/data/mysql/atomicupdate/bug_37856.pl new file mode 100755 index 0000000000..0d62d17143 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_37856.pl @@ -0,0 +1,19 @@ +use Modern::Perl; +use Koha::Installer::Output qw(say_warning say_failure say_success say_info); + +return { + bug_number => "37856", + description => "Add service_platform column to erm_usage_data_providers", + up => sub { + my ($args) = @_; + my ( $dbh, $out ) = @$args{qw(dbh out)}; + + if( !column_exists( 'erm_usage_data_providers', 'service_platform' ) ) { + $dbh->do(q{ + ALTER TABLE erm_usage_data_providers ADD COLUMN `service_platform` varchar(80) DEFAULT NULL COMMENT 'platform if provider requires it' AFTER `report_types` + }); + say_info( $out, "Bug 37856 - Added service_platform column to table 'erm_usage_data_providers'" ); + } + say_success( $out, "Bug 37856 - Done" ); + }, +}; -- 2.39.5