summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 94c0bb2ee..ad76e11be 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -2911,7 +2911,10 @@ function system_update_7065() {
'length' => 128,
'not null' => TRUE,
);
- db_change_field('sessions', 'sid', 'sid', $spec);
+ db_drop_primary_key('sessions');
+ db_change_field('sessions', 'sid', 'sid', $spec, array('primary key' => array('sid', 'ssid')));
+ // Delete any sessions with empty session ID.
+ db_delete('sessions')->condition('sid', '')->execute();
}
/**