Drop session table's primary key, change introduced with CI3.0.6 to prevents conflicts if sess_match_ip is set to TRUE

This commit is contained in:
FrancescoUK
2016-06-27 15:57:20 +01:00
parent 586c8f8db9
commit dd2dc7312c
4 changed files with 6 additions and 6 deletions

View File

@@ -66,4 +66,7 @@ INSERT INTO `ospos_permissions` (`permission_id`, `module_id`) VALUES
INSERT INTO `ospos_grants` (`permission_id`, `person_id`) VALUES
('messages', 1);
ALTER TABLE `ospos_sessions`
DROP PRIMARY KEY;

View File

@@ -679,8 +679,7 @@ CREATE TABLE `ospos_sessions` (
`id` varchar(40) NOT NULL DEFAULT '0',
`ip_address` varchar(45) NOT NULL DEFAULT '0',
`data` blob NOT NULL,
`timestamp` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
`timestamp` int(10) unsigned NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--

View File

@@ -679,8 +679,7 @@ CREATE TABLE `ospos_sessions` (
`id` varchar(40) NOT NULL DEFAULT '0',
`ip_address` varchar(45) NOT NULL DEFAULT '0',
`data` blob NOT NULL,
`timestamp` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
`timestamp` int(10) unsigned NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--

View File

@@ -679,8 +679,7 @@ CREATE TABLE `ospos_sessions` (
`id` varchar(40) NOT NULL DEFAULT '0',
`ip_address` varchar(45) NOT NULL DEFAULT '0',
`data` blob NOT NULL,
`timestamp` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
`timestamp` int(10) unsigned NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--