function system_update_7065
Remove the default value for sid.
Related topics
Archivo
- drupal-7.x/
modules/ system/ system.install, line 2943 - Install, update and uninstall functions for the system module.
Código
function system_update_7065() {
$spec = array(
'description' => "A session ID. The value is generated by Drupal's session handlers.",
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
);
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();
}