Bug 17813 - DBRev 16.12.00.006
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Jan 2017 14:00:47 +0000 (14:00 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Jan 2017 14:00:47 +0000 (14:00 +0000)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_17813_borrower_attributes_pk.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 9c08593..8e399d6 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.005";
+$VERSION = "16.12.00.006";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_17813_borrower_attributes_pk.perl b/installer/data/mysql/atomicupdate/bug_17813_borrower_attributes_pk.perl
deleted file mode 100644 (file)
index bb0e5f8..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-$DBversion = "16.12.00.XXX";
-if ( CheckVersion($DBversion) ) {
-    unless (     column_exists( 'borrower_attributes', 'id' )
-             and index_exists( 'borrower_attributes', 'PRIMARY' ) )
-    {
-        $dbh->do(q{
-            ALTER TABLE `borrower_attributes`
-                ADD `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST
-        });
-    }
-
-    print "Upgrade to $DBversion done (Bug 17813: Table borrower_attributes needs a primary key\n";
-    SetVersion($DBversion);
-}
index 3472b7e..0fdbded 100755 (executable)
@@ -13846,6 +13846,21 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (Bug 17913 - AuthorityMergeMode)\n";
 }
 
+$DBversion = "16.12.00.006";
+if ( CheckVersion($DBversion) ) {
+    unless (     column_exists( 'borrower_attributes', 'id' )
+             and index_exists( 'borrower_attributes', 'PRIMARY' ) )
+    {
+        $dbh->do(q{
+            ALTER TABLE `borrower_attributes`
+                ADD `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST
+        });
+    }
+
+    print "Upgrade to $DBversion done (Bug 17813: Table borrower_attributes needs a primary key\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.