Projet

Général

Profil

Paste
Télécharger (747 octets) Statistiques
| Branche: | Révision:

root / drupal7 / modules / simpletest / tests / taxonomy_test.install @ db2d93dd

1
<?php
2

    
3
/**
4
 * @file
5
 * Install, update and uninstall functions for the taxonomy_test module.
6
 */
7

    
8
/**
9
 * Implements hook_schema().
10
 */
11
function taxonomy_test_schema() {
12
  $schema['taxonomy_term_antonym'] = array(
13
    'description' => 'Stores term antonym.',
14
    'fields' => array(
15
      'tid' => array(
16
        'type' => 'int',
17
        'unsigned' => TRUE,
18
        'not null' => TRUE,
19
        'default' => 0,
20
        'description' => 'The {taxonomy_term_data}.tid of the term.',
21
      ),
22
      'name' => array(
23
        'type' => 'varchar',
24
        'length' => 255,
25
        'not null' => TRUE,
26
        'default' => '',
27
        'description' => 'The name of the antonym.',
28
      ),
29
    ),
30
    'primary key' => array('tid'),
31
  );
32

    
33
  return $schema;
34
}