Skip to content
Snippets Groups Projects
Commit 99ec176a authored by Angie Byron's avatar Angie Byron
Browse files

#813492 follow-up by chx, marcingy, c960657: Fixed HTTPS sessions use an invalid merge query.

parent 8a27a7dd
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -582,6 +582,10 @@ function update_fix_d7_requirements() {
variable_set('maintenance_mode_message', $message);
}
// Add ssid column and index.
db_add_field('sessions', 'ssid', array('description' => "Secure session ID. The value is generated by PHP's Session API.", 'type' => 'varchar', 'length' => 64, 'not null' => TRUE, 'default' => ''));
db_add_index('sessions', 'ssid', array('ssid'));
variable_set('update_d7_requirements', TRUE);
}
......
......@@ -1414,14 +1414,14 @@ function system_schema() {
'not null' => TRUE,
),
'sid' => array(
'description' => "Primary key: A session ID. The value is generated by PHP's Session API.",
'description' => "A session ID. The value is generated by PHP's Session API.",
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
'ssid' => array(
'description' => "Unique key: Secure session ID. The value is generated by PHP's Session API.",
'description' => "Secure session ID. The value is generated by PHP's Session API.",
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
......@@ -1460,6 +1460,7 @@ function system_schema() {
'indexes' => array(
'timestamp' => array('timestamp'),
'uid' => array('uid'),
'ssid' => array('ssid'),
),
'foreign keys' => array(
'uid' => array('users' => 'uid'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment