Blame view

config/schema/sessions.sql 775 Bytes
07e4c3fb   Etienne Pallier   v4.108.0-3.7.9 - ...
1
# Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
6c4edfa3   Alexandre   First Commit LabI...
2
3
4
5
#
# Licensed under The MIT License
# For full copyright and license information, please see the LICENSE.txt
# Redistributions of files must retain the above copyright notice.
07e4c3fb   Etienne Pallier   v4.108.0-3.7.9 - ...
6
# MIT License (https://opensource.org/licenses/mit-license.php)
6c4edfa3   Alexandre   First Commit LabI...
7

07e4c3fb   Etienne Pallier   v4.108.0-3.7.9 - ...
8
9
10
11
12
13
14
15
CREATE TABLE `sessions` (
  `id` char(40) CHARACTER SET ascii COLLATE ascii_bin NOT NULL,
  `created` datetime DEFAULT CURRENT_TIMESTAMP, -- optional, requires MySQL 5.6.5+
  `modified` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- optional, requires MySQL 5.6.5+
  `data` blob DEFAULT NULL, -- for PostgreSQL use bytea instead of blob
  `expires` int(10) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;