DBRev for Bug 15517 - Tables borrowers and deletedborrowers differ again
authorBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 23 Feb 2016 23:13:08 +0000 (23:13 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 23 Feb 2016 23:13:08 +0000 (23:13 +0000)
Koha.pm
installer/data/mysql/atomicupdate/bug_15517.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index fc56316..49a834c 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 = "3.23.00.023";
+$VERSION = "3.23.00.024";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_15517.sql b/installer/data/mysql/atomicupdate/bug_15517.sql
deleted file mode 100644 (file)
index d2b459e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE deletedborrowers MODIFY COLUMN userid VARCHAR(75) DEFAULT NULL;
-ALTER TABLE deletedborrowers MODIFY COLUMN password VARCHAR(60) DEFAULT NULL;
index ca62a38..5588aa5 100755 (executable)
@@ -11795,6 +11795,18 @@ VALUES('OpenLibrarySearch','0','If Yes Open Library search results will show in
     print "Upgrade to $DBversion done (Bug 6624 - Allow Koha to use the new read API from OpenLibrary)\n";
     SetVersion($DBversion);
 }
+
+$DBversion = "3.23.00.024";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q{
+    ALTER TABLE deletedborrowers MODIFY COLUMN userid VARCHAR(75) DEFAULT NULL;
+});
+    $dbh->do(q{
+    ALTER TABLE deletedborrowers MODIFY COLUMN password VARCHAR(60) DEFAULT NULL;
+});
+    print "Upgrade to $DBversion done (Bug 15517 - Tables borrowers and deletedborrowers differ again)\n";
+    SetVersion($DBversion);
+}
 # 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.