Skip to content

Instantly share code, notes, and snippets.

@reactormade
Created August 25, 2012 17:57
Show Gist options
  • Save reactormade/3468547 to your computer and use it in GitHub Desktop.
Save reactormade/3468547 to your computer and use it in GitHub Desktop.
Create CI_Sessions table
CREATE TABLE `sessions` (
`session_id` varchar(40) NOT NULL DEFAULT '0',
`ip_address` varchar(16) NOT NULL DEFAULT '0',
`user_agent` varchar(50) NOT NULL,
`last_activity` int(10) unsigned NOT NULL DEFAULT '0',
`user_data` text NOT NULL,
PRIMARY KEY (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment