diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-06-27 10:48:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-06-27 10:48:17 +0000 |
commit | db6d3d79a8a2f0d6c189efb635bc5b4bbf0db059 (patch) | |
tree | e4ed6fb62106929cf5031b6a3aa9b6402fd07a03 /modules/system/system.install | |
parent | ceabe1870e3706bde3f3890d165cdf4e73e2beb2 (diff) | |
download | brdo-db6d3d79a8a2f0d6c189efb635bc5b4bbf0db059.tar.gz brdo-db6d3d79a8a2f0d6c189efb635bc5b4bbf0db059.tar.bz2 |
- Patch #837832 by dereine, marcingy: increase the size of {sessions}.sid.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 20 |
1 files changed, 17 insertions, 3 deletions
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. @@ -2556,6 +2556,20 @@ function system_update_7056() { } /** + * 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. */ |