You are here

function site_verify_schema in Site verification 8

Same name and namespace in other branches
  1. 6 site_verify.install \site_verify_schema()
  2. 7.2 site_verify.install \site_verify_schema()
  3. 7 site_verify.install \site_verify_schema()

Implements hook_scheam().

File

./site_verify.install, line 11
Install, update and uninstall functions for the site_verify module.

Code

function site_verify_schema() {
  $schema['site_verify'] = [
    'description' => '',
    'fields' => [
      'svid' => [
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'Primary Key: Unique site verification ID.',
      ],
      'engine' => [
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '',
        'description' => '',
      ],
      'file' => [
        'type' => 'varchar',
        'length' => 255,
        'default' => '',
        'description' => '',
      ],
      'file_contents' => [
        'type' => 'text',
        'not null' => TRUE,
        'size' => 'big',
        'description' => '',
      ],
      'meta' => [
        'type' => 'text',
        'not null' => TRUE,
        'description' => '',
      ],
    ],
    'primary key' => [
      'svid',
    ],
    'indexes' => [
      'engine' => [
        'engine',
      ],
    ],
  ];
  return $schema;
}