cms/drupal/modules/simpletest/tests/taxonomy_test.install
author ymh <ymh.work@gmail.com>
Tue, 20 Mar 2018 15:02:40 +0100
changeset 573 25f3d28f51b2
parent 541 e756a8c72c3d
permissions -rwxr-xr-x
Added tag 0.0.25 for changeset 190ae1dee68d

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