summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/taxonomy_test.install
blob: d5c94da5f7b23ecf433f2851bba0f00919342b98 (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
<?php

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

/**
 * Implements hook_schema().
 */
function taxonomy_test_schema() {
  $schema['taxonomy_term_antonym'] = array(
    'description' => 'Stores term antonym.',
    'fields' => array(
      'tid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => 'The {taxonomy_term_data}.tid of the term.',
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'description' => 'The name of the antonym.',
      ),
    ),
    'primary key' => array('tid'),
  );

  return $schema;
}