Changeset 727


Ignore:
Timestamp:
May 26, 2020 8:12:25 PM (4 years ago)
Author:
anonymous
Message:

Update session_tbl.session_id to support 256 chars and CHARACTER SET ascii COLLATE ascii_bin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/DBSessionHandler.inc.php

    r702 r727  
    107107            }
    108108            $this->db->query("CREATE TABLE IF NOT EXISTS " . $this->db->escapeString($this->_params['db_table']) . " (
    109                 session_id VARCHAR(191) NOT NULL DEFAULT '',
    110                 session_data mediumtext NOT NULL,
    111                 last_access timestamp NOT NULL,
    112                 PRIMARY KEY (session_id),
    113                 KEY last_access (last_access)
    114             )");
     109                `session_id` VARCHAR(255) CHARACTER SET ascii COLLATE ascii_bin NOT NULL DEFAULT '',
     110                `session_data` MEDIUMTEXT NOT NULL,
     111                `last_access` TIMESTAMP(14) NOT NULL,
     112                PRIMARY KEY `session_id` (`session_id`),
     113                KEY `last_access` (`last_access`)
     114            ) ENGINE=InnoDB DEFAULT CHARSET=utf8");
    115115
    116116            if (!$this->db->columnExists($this->_params['db_table'], array(
Note: See TracChangeset for help on using the changeset viewer.