You are here

function activityhistory_schema in Activity 6

Implementation of hook_schema().

File

contrib/activityhistory/activityhistory.install, line 6

Code

function activityhistory_schema() {
  $schema['activity_history'] = array(
    'description' => 'The {activity_history} table stores activity history data',
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'aid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'timestamp' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'uid',
      'aid',
    ),
  );
  return $schema;
}