From a15c56868caf40fd383ac9c0a5578474369d5be1 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 21 Oct 2020 04:49:31 +0000 Subject: [PATCH] Bug 26684: Fix atomic update --- .../atomicupdate/001-26684-drop_marc_column_from_auth_header.perl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/atomicupdate/001-26684-drop_marc_column_from_auth_header.perl b/installer/data/mysql/atomicupdate/001-26684-drop_marc_column_from_auth_header.perl index 7dd8148208..bf4500c442 100755 --- a/installer/data/mysql/atomicupdate/001-26684-drop_marc_column_from_auth_header.perl +++ b/installer/data/mysql/atomicupdate/001-26684-drop_marc_column_from_auth_header.perl @@ -1,6 +1,8 @@ $DBversion = 'XXX'; # will be replaced by the RM if( CheckVersion( $DBversion ) ) { - $dbh->do( "ALTER TABLE auth_header DROP COLUMN marc" ); + if( column_exists( 'auth_header', 'marc' ) ) { + $dbh->do( "ALTER TABLE auth_header DROP COLUMN marc" ); + } - NewVersion( $DBversion, XXXXX, "Drop marc column from auth_header"); + NewVersion( $DBversion, 26684, "Drop marc column from auth_header"); } -- 2.11.0