taxonomy_test.install 747 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the taxonomy_test module.
  5. */
  6. /**
  7. * Implements hook_schema().
  8. */
  9. function taxonomy_test_schema() {
  10. $schema['taxonomy_term_antonym'] = array(
  11. 'description' => 'Stores term antonym.',
  12. 'fields' => array(
  13. 'tid' => array(
  14. 'type' => 'int',
  15. 'unsigned' => TRUE,
  16. 'not null' => TRUE,
  17. 'default' => 0,
  18. 'description' => 'The {taxonomy_term_data}.tid of the term.',
  19. ),
  20. 'name' => array(
  21. 'type' => 'varchar',
  22. 'length' => 255,
  23. 'not null' => TRUE,
  24. 'default' => '',
  25. 'description' => 'The name of the antonym.',
  26. ),
  27. ),
  28. 'primary key' => array('tid'),
  29. );
  30. return $schema;
  31. }