From 261d870601e3d8d33ec98a5748a4ff0887dac35c Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Mon, 28 May 2012 11:55:23 +0200 Subject: [PATCH] Bug 7794: follow-up DBRev number + removing UNIQUE index that is now useless --- installer/data/mysql/updatedatabase.pl | 3 ++- kohaversion.pl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5