From 57b678f06a9c5652c469808fd833ea682dac06f3 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 4 May 2021 13:48:23 +0100 Subject: [PATCH] Bug 26995: (QA follow-up) Fix logic in database update The logic was reversed.. if the column exists we want to delete it ;) Signed-off-by: Martin Renvoize --- installer/data/mysql/atomicupdate/bug_26995.perl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_26995.perl b/installer/data/mysql/atomicupdate/bug_26995.perl index d578c700bb..1a3ea15ea3 100644 --- a/installer/data/mysql/atomicupdate/bug_26995.perl +++ b/installer/data/mysql/atomicupdate/bug_26995.perl @@ -1,18 +1,18 @@ $DBversion = 'XXX'; # will be replaced by the RM if( CheckVersion( $DBversion ) ) { - if ( !column_exists( 'borrowers', 'relationship' ) ) { + if ( column_exists( 'borrowers', 'relationship' ) ) { $dbh->do(q{ ALTER TABLE borrowers DROP COLUMN relationship }); } - if ( !column_exists( 'deletedborrowers', 'relationship' ) ) { + if ( column_exists( 'deletedborrowers', 'relationship' ) ) { $dbh->do(q{ ALTER TABLE deletedborrowers DROP COLUMN relationship }); } - if ( !column_exists( 'borrower_modifications', 'relationship' ) ) { + if ( column_exists( 'borrower_modifications', 'relationship' ) ) { $dbh->do(q{ ALTER TABLE borrower_modifications DROP COLUMN relationship }); -- 2.20.1