Bug 21068: Remove table borrower_sync if needed

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-08-24 17:00:31 -03:00 committed by Nick Clemens
parent f0652790df
commit 7ae0dfa076
1 changed files with 3 additions and 0 deletions

View 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 );