Further modules included.
[yaffs-website] / web / modules / contrib / advanced_help / advanced_help.install
1 <?php
2
3 /**
4  * Implements hook_schema().
5  */
6 function advanced_help_schema() {
7   $schema['advanced_help_index'] = [
8     'description' => 'Stores search index correlations for advanced help topics.',
9     'fields' => [
10       'sid' => [
11         'type' => 'serial',
12         'unsigned' => TRUE,
13         'not null' => TRUE,
14         'description' => 'The primary key to give to the search engine for this topic.',
15         'no export' => TRUE,
16       ],
17       'module' => [
18         'type' => 'varchar',
19         'length' => '255',
20         'default' => '',
21         'not null' => TRUE,
22         'description' => 'The module that owns this topic.',
23       ],
24       'topic' => [
25         'type' => 'varchar',
26         'length' => '255',
27         'default' => '',
28         'not null' => TRUE,
29         'description' => 'The topic id.',
30       ],
31       'langcode' => [
32         'type' => 'varchar',
33         'length' => 12,
34         'not null' => TRUE,
35         'default' => '',
36         'description' => 'The langcode this search index relates to.',
37       ],
38     ],
39     'primary key' => ['sid'],
40     'indexes' => ['langcode' => ['langcode']],
41     'foreign keys' => [
42       'system' => [
43         'table' => 'system',
44         'columns' => ['name' => 'name'],
45       ],
46     ],
47   ];
48
49   return $schema;
50 }