Bug 21068: Remove table borrower_sync if needed
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 24 Aug 2018 20:00:31 +0000 (17:00 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 30 Aug 2018 13:40:29 +0000 (13:40 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
installer/data/mysql/atomicupdate/bug_21068.perl

index f881a68..46873a6 100644 (file)
@@ -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 );