function session_api_update_7101

7.x-1.x session_api.install session_api_update_7101()

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.');
}