Bug 16034 - DBRev 16.12.00.010
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 21 Feb 2017 20:01:17 +0000 (20:01 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 21 Feb 2017 20:01:17 +0000 (20:01 +0000)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/overdrive.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index c08f388..fb3229c 100644 (file)
--- 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 (file)
index 98cea68..0000000
+++ /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');
index 4eb6588..2d94ecd 100755 (executable)
@@ -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.