From acf5441ec19c93b49ec09ec5438ee1ec9df5bf7d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 24 Aug 2018 17:00:31 -0300 Subject: [PATCH] Bug 21068: Remove table borrower_sync if needed Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/atomicupdate/bug_21068.perl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installer/data/mysql/atomicupdate/bug_21068.perl b/installer/data/mysql/atomicupdate/bug_21068.perl index f881a684b3..46873a6be5 100644 --- a/installer/data/mysql/atomicupdate/bug_21068.perl +++ b/installer/data/mysql/atomicupdate/bug_21068.perl @@ -7,6 +7,9 @@ if( CheckVersion( $DBversion ) ) { DELETE FROM systempreferences WHERE variable IN ('NorwegianPatronDBEnable', 'NorwegianPatronDBEndpoint', 'NorwegianPatronDBUsername', 'NorwegianPatronDBPassword', 'NorwegianPatronDBSearchNLAfterLocalHit') |); + if ( TableExists('borrower_sync') ) { + $dbh->do(q|DROP TABLE borrower_sync|); + } } SetVersion( $DBversion ); -- 2.18.0