function accessibility_schema

cis7 accessibility.install accessibility_schema()
cle7 accessibility.install accessibility_schema()
elmsmedia7 accessibility.install accessibility_schema()
icor7 accessibility.install accessibility_schema()
meedjum_blog7 accessibility.install accessibility_schema()
mooc7 accessibility.install accessibility_schema()

Implements hook_schema().

File

sites/all/modules/ulmus/accessibility/accessibility.install, line 130

Code

function accessibility_schema() {
  $schema = array();

  $schema['accessibility_test'] = array(
    'description' => 'Accessibility tests.',
    'fields' => array(
      'test_id' => array(
        'description' => 'Primary Key: Identifier for an accessibility test.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'language' => array(
        'description' => 'The language of the test.',
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '',
      ),
      'name' => array(
        'description' => 'The name of the test - a human-readable identifier.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'quail_name' => array(
        'description' => 'The name of the related QUAIL test label.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'severity' => array(
        'description' => 'The severity of the test.',
        'type' => 'varchar',
        'length' => 50,
        'not null' => TRUE,
        'default' => 'suggestion',
      ),
      'status' => array(
        'description' => 'Whether the test is active or not.',
        'type' => 'int',
        'length' => 1,
        'not null' => TRUE,
        'default' => 1,
      ),
      'created' => array(
        'description' => 'The Unix timestamp when the test was created.',
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'changed' => array(
        'description' => 'The Unix timestamp when the test was most recently saved.',
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'data' => array(
        'type' => 'blob',
        'not null' => FALSE,
        'size' => 'big',
        'serialize' => TRUE,
        'description' => 'A serialized array of additional data.',
      ),
    ),
    'primary key' => array('test_id'),
  );

  return $schema;
}