Skip to content

Commit

Permalink
Created never used oc_session table
Browse files Browse the repository at this point in the history
  • Loading branch information
condor2 committed Jun 28, 2024
1 parent c55f052 commit addbaf1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
14 changes: 14 additions & 0 deletions upload/install/opencart.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3128,6 +3128,20 @@ CREATE TABLE `oc_review` (

-- --------------------------------------------------------

--
-- Table structure for table `oc_session`
--

DROP TABLE IF EXISTS `oc_session`;
CREATE TABLE `oc_session` (
`session_id` varchar(32) NOT NULL,
`data` text NOT NULL,
`expire` datetime NOT NULL,
PRIMARY KEY (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

-- --------------------------------------------------------

--
-- Table structure for table `oc_setting`
--
Expand Down
9 changes: 1 addition & 8 deletions upload/system/library/session/db.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<?php
/*
CREATE TABLE IF NOT EXISTS `session` (
`session_id` varchar(32) NOT NULL,
`data` text NOT NULL,
`expire` datetime NOT NULL,
PRIMARY KEY (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
*/
namespace Session;

final class DB {
public $data = [];
public $expire = [];
Expand Down

0 comments on commit addbaf1

Please sign in to comment.