You are here

function session_api_update_7101 in Session API 7

Implements hook_update_N().

Adds timestamp field.

File

./session_api.install, line 58
Install file for Session API.

Code

function session_api_update_7101() {
  db_add_field('session_api', 'timestamp', array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_index('session_api', 'timestamp', array(
    'timestamp',
  ));
  return t('Added a timestamp field and index to the session_api table.');
}