summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-27 10:48:17 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-27 10:48:17 +0000
commitdb6d3d79a8a2f0d6c189efb635bc5b4bbf0db059 (patch)
treee4ed6fb62106929cf5031b6a3aa9b6402fd07a03
parentceabe1870e3706bde3f3890d165cdf4e73e2beb2 (diff)
downloadbrdo-db6d3d79a8a2f0d6c189efb635bc5b4bbf0db059.tar.gz
brdo-db6d3d79a8a2f0d6c189efb635bc5b4bbf0db059.tar.bz2
- Patch #837832 by dereine, marcingy: increase the size of {sessions}.sid.
-rw-r--r--includes/update.inc2
-rw-r--r--modules/system/system.install20
2 files changed, 18 insertions, 4 deletions
diff --git a/includes/update.inc b/includes/update.inc
index 2e29240a2..b27dbff5a 100644
--- a/includes/update.inc
+++ b/includes/update.inc
@@ -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);
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.
*/