You are here

function log_update_7001 in Log entity 7

Add 'timestamp' field to Logs.

Parameters

array $sandbox: The update sandbox array.

File

./log.install, line 175
Log install.

Code

function log_update_7001(array &$sandbox) {

  // Add timestamp field to Logs.
  $timestamp = array(
    'description' => 'Timestamp of the event being logged',
    'type' => 'int',
  );
  db_add_field('log', 'timestamp', $timestamp);
  db_add_index('log', 'timestamp', array(
    'timestamp',
  ));
}