Created
February 22, 2013 19:51
-
-
Save yoannmoinet/5016079 to your computer and use it in GitHub Desktop.
Code Igniter Session Table creation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS `ci_sessions` ( | |
session_id varchar(40) DEFAULT '0' NOT NULL, | |
ip_address varchar(45) DEFAULT '0' NOT NULL, | |
user_agent varchar(120) NOT NULL, | |
last_activity int(10) unsigned DEFAULT 0 NOT NULL, | |
user_data text NOT NULL, | |
PRIMARY KEY (session_id), | |
KEY `last_activity_idx` (`last_activity`) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment