Bug 7794: follow-up DBRev number + removing UNIQUE index that is now useless
authorPaul Poulain <paul.poulain@biblibre.com>
Mon, 28 May 2012 09:55:23 +0000 (11:55 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 28 May 2012 09:55:23 +0000 (11:55 +0200)
installer/data/mysql/updatedatabase.pl
kohaversion.pl

index a263fa5..c801f00 100755 (executable)
@@ -5293,9 +5293,10 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
     SetVersion($DBversion);
 }
 
-$DBversion = "XXX";
+$DBversion = "3.09.00.008";
 if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
     $dbh->do("ALTER TABLE sessions ADD PRIMARY KEY (id);");
+    $dbh->do("ALTER TABLE sessions DROP INDEX `id`;");
     print "Upgrade to $DBversion done (redefine the field id as PRIMARY KEY of sessions)\n";
     SetVersion ($DBversion);
 }
index a55e495..348ae63 100644 (file)
@@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
 use strict;
 
 sub kohaversion {
-    our $VERSION = '3.09.00.007';
+    our $VERSION = '3.09.00.008';
     # version needs to be set this way
     # so that it can be picked up by Makefile.PL
     # during install