Commit 15fe37a7 authored by Dries's avatar Dries
Browse files

- Patch #838528 by marcingy: primary index on session table is not update when upgrading.

parent ebbb3eff
......@@ -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.
// Add new primary key.
db_add_primary_key('sessions', array('sid', 'ssid'));
variable_set('update_d7_requirements', TRUE);
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