Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Create_Table_Sessions
- {
- function up()
- {
- create_table('ci_sessions', array(
- array('name' => 'session_id', 'type' => 'varchar(40)', 'DEFAULT' => '0', 'NOT NULL' => TRUE),
- array('name' => 'ip_address', 'type' => 'varchar(16)', 'DEFAULT' => '0', 'NOT NULL' => TRUE),
- array('name' => 'user_agent', 'type' => 'varchar(50)', 'NOT NULL' => TRUE),
- array('name' => 'last_activity', 'type' => 'int(10)', 'UNSIGNED' => TRUE, 'DEFAULT' => '0', 'NOT NULL' => TRUE),
- array('name' => 'user_data', 'type' => 'text', 'DEFAULT' => '', 'NOT NULL' => TRUE),
- ), array('primary_key' => 'session_id'));
- }
- }
Add Comment
Please, Sign In to add comment