Commit db6d3d79 authored by Dries's avatar Dries

- Patch #837832 by dereine, marcingy: increase the size of {sessions}.sid.

parent ceabe187
......@@ -584,7 +584,7 @@ function update_fix_d7_requirements() {
}
// 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_field('sessions', 'ssid', array('description' => "Secure session ID. The value is generated by PHP's Session API.", 'type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''));
db_add_index('sessions', 'ssid', array('ssid'));
variable_set('update_d7_requirements', TRUE);
......
......@@ -1415,14 +1415,14 @@ function system_schema() {
'sid' => array(
'description' => "A session ID. The value is generated by PHP's Session API.",
'type' => 'varchar',
'length' => 64,
'length' => 128,
'not null' => TRUE,
'default' => '',
),
'ssid' => array(
'description' => "Secure session ID. The value is generated by PHP's Session API.",
'type' => 'varchar',
'length' => 64,
'length' => 128,
'not null' => TRUE,
'default' => '',
),
......@@ -2544,7 +2544,7 @@ function system_update_7055() {
}
/**
* Remove pid from indexes and unique keys of {}url_alias}.
* Remove pid from indexes and unique keys of {url_alias}.
*/
function system_update_7056() {
// Drop indexes.
......@@ -2555,6 +2555,20 @@ function system_update_7056() {
db_add_unique_key('url_alias', 'alias_language', array('alias', 'language'));
}
/**
* Increase the size of session-ids.
*/
function system_update_7057() {
$spec = array(
'description' => "A session ID. The value is generated by PHP's Session API.",
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
);
db_change_field('sessions', 'sid', 'sid', $spec);
}
/**
* @} End of "defgroup updates-6.x-to-7.x"
* The next series of updates should start at 8000.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment