changing Session table structure (due to CGI::Sessions)
I switch to 3.00.00.002, that's another test to check that everything is fine with the new kohaversion management. Work like a charm... Signed-off-by: Chris Cormack <crc@liblime.com>
This commit is contained in:
parent
2f3c909089
commit
284beffc62
|
|
@ -8,7 +8,7 @@
|
|||
# and is automatically called by Auth.pm when needed.
|
||||
|
||||
sub kohaversion {
|
||||
return "3.00.00.001";
|
||||
return "3.00.00.002";
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -2124,6 +2124,21 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
|||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
=item
|
||||
Deal with the sessions table that uses CGI::Session
|
||||
=cut
|
||||
|
||||
$DBversion = "3.00.00.002";
|
||||
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
|
||||
$dbh->do("DROP TABLE sessions");
|
||||
$dbh->do("CREATE TABLE `sessions` (
|
||||
`id` char(32) NOT NULL,
|
||||
`a_session` text NOT NULL,
|
||||
UNIQUE KEY `id` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;");
|
||||
print "Upgrade to $DBversion done (sessions uses CGI::session, new table structure for sessions)\n";
|
||||
SetVersion ($DBversion);
|
||||
}
|
||||
|
||||
|
||||
=item DropAllForeignKeys($table)
|
||||
|
|
|
|||
Loading…
Reference in New Issue