function taxonomy_test_schema

Implements hook_schema().

File

modules/simpletest/tests/taxonomy_test.install, line 11

Code

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.