Mercurial > hg > rr-repo
diff modules/simpletest/tests/taxonomy_test.install @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/simpletest/tests/taxonomy_test.install Wed Aug 21 18:51:11 2013 +0100 @@ -0,0 +1,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; +}