mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-02-18 14:48:42 -05:00
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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
--
|
||||
|
||||
@@ -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;
|
||||
|
||||
--
|
||||
|
||||
@@ -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;
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user