You are here

site_verify.install in Site verification 8

Same filename and directory in other branches
  1. 6 site_verify.install
  2. 7.2 site_verify.install
  3. 7 site_verify.install

Install, update and uninstall functions for the site_verify module.

File

site_verify.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the site_verify module.
 */

/**
 * Implements hook_scheam().
 */
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;
}

Functions

Namesort descending Description
site_verify_schema Implements hook_scheam().