You are here

function _fb_install_alter_session_table in Drupal for Facebook 6.2

1 call to _fb_install_alter_session_table()
fb_update_6000 in ./fb.install

File

./fb.install, line 90
Install file to support fb.module.

Code

function _fb_install_alter_session_table() {

  // Make sessions.sid column large enough for Facebook's session_keys.
  if (variable_get('fb_session_long_keys', TRUE)) {
    $ret = array();
    $spec = array(
      'description' => "Primary key: A session ID. The value is generated by PHP's Session API.",
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
      'default' => '',
    );
    db_change_field($ret, 'sessions', 'sid', 'sid', $spec);
  }
}