From 66bf1e163eefd346c2231315feac9c45dbc26d06 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 31 Oct 2023 17:52:51 +0000 Subject: [PATCH] Bug 34438: Database update Signed-off-by: David Nind --- installer/data/mysql/atomicupdate/bug_34438.pl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_34438.pl diff --git a/installer/data/mysql/atomicupdate/bug_34438.pl b/installer/data/mysql/atomicupdate/bug_34438.pl new file mode 100755 index 0000000000..0876ea5e77 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_34438.pl @@ -0,0 +1,15 @@ +use Modern::Perl; + +return { + bug_number => "34438", + description => "Add lang to to the borrower_modifications table", + up => sub { + my ($args) = @_; + my $dbh = $args->{dbh}; + if ( !column_exists( 'borrower_modifications', 'lang' ) ) { + $dbh->do( +"ALTER TABLE `borrower_modifications` ADD COLUMN `lang` VARCHAR(25) DEFAULT NULL AFTER `primary_contact_method`" + ); + } + }, + } -- 2.30.2