summaryrefslogtreecommitdiff
path: root/sites/all/modules/advanced_help/advanced_help.install
blob: 6c4455a042ae8ad94f468a09010eb93d1187f1a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
 * @file
 * Contains install and update functions for advanced_help.
 */

/**
 * Implements hook_uninstall().
 */
function advanced_help_uninstall() {
  variable_del('advanced_help_last_cron');
}

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

  return $schema;
}