From: Paul Poulain Date: Mon, 28 May 2012 09:55:23 +0000 (+0200) Subject: Bug 7794: follow-up DBRev number + removing UNIQUE index that is now useless X-Git-Tag: v3.10.01~1005 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=261d870601e3d8d33ec98a5748a4ff0887dac35c;p=koha-ffzg.git Bug 7794: follow-up DBRev number + removing UNIQUE index that is now useless --- diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index a263fa5814..c801f00726 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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); } diff --git a/kohaversion.pl b/kohaversion.pl index a55e495d4f..348ae63198 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -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