You are here

advanced_help.install in Advanced Help 8

Same filename and directory in other branches
  1. 5 advanced_help.install
  2. 6 advanced_help.install
  3. 7 advanced_help.install

File

advanced_help.install
View source
<?php

/**
 * @file
 */

/**
 * Implements hook_schema().
 */
function advanced_help_schema() {
  $schema['advanced_help_index'] = [
    'description' => 'Stores search index correlations for advanced help topics.',
    'fields' => [
      'sid' => [
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => 'The primary key to give to the search engine for this topic.',
        'no export' => TRUE,
      ],
      'module' => [
        'type' => 'varchar',
        'length' => '255',
        'default' => '',
        'not null' => TRUE,
        'description' => 'The module that owns this topic.',
      ],
      'topic' => [
        'type' => 'varchar',
        'length' => '255',
        'default' => '',
        'not null' => TRUE,
        'description' => 'The topic id.',
      ],
      'langcode' => [
        'type' => 'varchar',
        'length' => 12,
        'not null' => TRUE,
        'default' => '',
        'description' => 'The langcode this search index relates to.',
      ],
    ],
    'primary key' => [
      'sid',
    ],
    'indexes' => [
      'langcode' => [
        'langcode',
      ],
    ],
    'foreign keys' => [
      'system' => [
        'table' => 'system',
        'columns' => [
          'name' => 'name',
        ],
      ],
    ],
  ];
  return $schema;
}

Functions

Namesort descending Description
advanced_help_schema Implements hook_schema().