mediamosa_error_schema

Versions
mediamosa-21
mediamosa_error_schema()

Implements hook_schema().

Code

sites/all/modules/mediamosa/core/error/mediamosa_error.install.inc, line 246

<?php
function mediamosa_error_schema() {
  $a_schema[mediamosa_error_db::TABLE_NAME] = array(
  'description' => t('Stores the error code and messages of the error handeling.'),
    'fields' => array(
      mediamosa_error_db::ID => array(
        'type' => 'serial',
        'not null' => TRUE,
        'description' => t('Primary Key: Unique ID.'),
      ),
      mediamosa_error_db::NAME => array(
        'type' => 'varchar',
        'length' => mediamosa_error_db::NAME_LENGTH,
        'not null' => TRUE,
        'default' => '',
        'description' => t('The ID in capitals of the error code.'),
      ),
      mediamosa_error_db::CODE => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => t('The error code number.'),
      ),
      mediamosa_error_db::MESSAGE => array(
        'type' => 'text',
        'not null' => TRUE,
        'description' => t('The message to display.'),
      ),
    ),
    'primary key' => array(mediamosa_error_db::ID),
    'unique keys' => array(
      'uni_' . mediamosa_error_db::NAME => array(mediamosa_error_db::NAME),
      'uni_' . mediamosa_error_db::CODE => array(mediamosa_error_db::CODE),
    ),
  );

  return $a_schema;
}
?>