From e9d0337f329ea01cd90c2c425f20a57737a76512 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 21 Feb 2017 20:01:17 +0000 Subject: [PATCH] Bug 16034 - DBRev 16.12.00.010 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/overdrive.sql | 4 ---- installer/data/mysql/updatedatabase.pl | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 5 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/overdrive.sql diff --git a/Koha.pm b/Koha.pm index c08f38856a..fb3229ca3d 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "16.12.00.009"; +$VERSION = "16.12.00.010"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/overdrive.sql b/installer/data/mysql/atomicupdate/overdrive.sql deleted file mode 100644 index 98cea68c0e..0000000000 --- a/installer/data/mysql/atomicupdate/overdrive.sql +++ /dev/null @@ -1,4 +0,0 @@ -ALTER TABLE borrowers ADD overdrive_auth_token text default NULL AFTER lastseen; - -INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) -VALUES ('OverDriveCirculation','0','Enable client to see their OverDrive account','','YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 4eb6588dd1..2d94ecd862 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -13907,6 +13907,21 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 17453 - Inter-site holds improvement)\n"; } +$DBversion = "16.12.00.010"; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + ALTER TABLE borrowers ADD overdrive_auth_token text default NULL AFTER lastseen; + }); + + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) + VALUES ('OverDriveCirculation','0','Enable client to see their OverDrive account','','YesNo'); + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 16034 - Integration with OverDrive Patron API)\n"; +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5