You are here

function globallink_update_7310 in GlobalLink Connect for Drupal 7.7

Same name and namespace in other branches
  1. 7.5 globallink.install \globallink_update_7310()
  2. 7.6 globallink.install \globallink_update_7310()

File

./globallink.install, line 3303
Installation file for GlobalLink module.

Code

function globallink_update_7310() {
  $schema['globallink_log'] = array(
    'description' => 'GlobalLink Logs Table',
    'fields' => array(
      'lid' => array(
        'description' => 'Unique Log ID',
        'type' => 'serial',
        'unsigned' => FALSE,
        'not null' => TRUE,
      ),
      'severity' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => 'Info',
        'description' => 'The severity level of the event.',
      ),
      'type' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'description' => 'Type of Content - Content, Blocks, Menus etc.',
      ),
      'message' => array(
        'type' => 'text',
        'not null' => TRUE,
        'size' => 'big',
        'description' => 'Text of log message.',
      ),
      'timestamp' => array(
        'description' => 'The timestamp',
        'type' => 'int',
        'length' => 14,
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'lid',
    ),
    'indexes' => array(
      'severity' => array(
        'severity',
      ),
    ),
  );
  db_create_table('globallink_log', $schema['globallink_log']);
}