diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-06-27 16:51:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-06-27 16:51:38 +0000 |
commit | 15fe37a76b5c2ecda669e16a03f644ed14b9d0a3 (patch) | |
tree | 20dadae9ab0a09a3271ea9df4a2ac376764ee709 /includes | |
parent | ebbb3eff942741e8c7eef2e2b3fa001d20f61201 (diff) | |
download | brdo-15fe37a76b5c2ecda669e16a03f644ed14b9d0a3.tar.gz brdo-15fe37a76b5c2ecda669e16a03f644ed14b9d0a3.tar.bz2 |
- Patch #838528 by marcingy: primary index on session table is not update when upgrading.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/update.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/update.inc b/includes/update.inc index b27dbff5a..7db61191e 100644 --- a/includes/update.inc +++ b/includes/update.inc @@ -586,6 +586,10 @@ 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' => 128, 'not null' => TRUE, 'default' => '')); db_add_index('sessions', 'ssid', array('ssid')); + // Drop existing primary key. + db_drop_primary_key('sessions'); + // Add new primary key. + db_add_primary_key('sessions', array('sid', 'ssid')); variable_set('update_d7_requirements', TRUE); } |