Skip to content

Commit

Permalink
Make ci_sessions migration file correspond to ci_packbase
Browse files Browse the repository at this point in the history
  • Loading branch information
DidierViret committed Jan 11, 2022
1 parent 29bb1fd commit c96eb4d
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@ public function up()
$this->forge->addField([
'id'=>[
'type' => 'VARCHAR',
'constraint' => '255',
'constraint' => '128',
'null' => false
],
'ip_address'=>[
'type' => 'VARCHAR',
'constraint' => '45',
'null' => false,
'null' => false
],
'timestamp timestamp DEFAULT CURRENT_TIMESTAMP',
'timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL',
'data'=>[
'type' => 'BLOB',
'null' => false,
'type' => 'blob',
'null' => false
]

]);
$this->forge->addPrimaryKey('id');

$this->forge->addKey('id', TRUE);
$this->forge->addKey('timestamp');
$this->forge->createTable('ci_sessions',true);
}
Expand Down

0 comments on commit c96eb4d

Please sign in to comment.