You are here

function site_verify_schema in Site verification 6

Same name and namespace in other branches
  1. 8 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'] = array(
    'description' => '',
    'fields' => array(
      'svid' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'Primary Key: Unique site verification ID.',
      ),
      'engine' => array(
        'type' => 'varchar',
        'length' => 32,
        'not null' => TRUE,
        'default' => '',
        'description' => '',
      ),
      'file' => array(
        'type' => 'varchar',
        'length' => 255,
        'default' => '',
        'description' => '',
      ),
      'file_contents' => array(
        'type' => 'text',
        'not null' => TRUE,
        'size' => 'big',
        'description' => '',
      ),
      'meta' => array(
        'type' => 'text',
        'not null' => TRUE,
        'description' => '',
      ),
    ),
    'primary key' => array(
      'svid',
    ),
    'indexes' => array(
      'engine' => array(
        'engine',
      ),
    ),
  );
  return $schema;
}