From db6d3d79a8a2f0d6c189efb635bc5b4bbf0db059 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 27 Jun 2010 10:48:17 +0000 Subject: - Patch #837832 by dereine, marcingy: increase the size of {sessions}.sid. --- modules/system/system.install | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'modules/system/system.install') diff --git a/modules/system/system.install b/modules/system/system.install index 4532a1c4c..3bde2a9a0 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -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. -- cgit v1.2.3