summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/simpletest/tests/taxonomy_test.install
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/simpletest/tests/taxonomy_test.install')
-rw-r--r--kolab.org/www/drupal-7.26/modules/simpletest/tests/taxonomy_test.install34
1 files changed, 34 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/simpletest/tests/taxonomy_test.install b/kolab.org/www/drupal-7.26/modules/simpletest/tests/taxonomy_test.install
new file mode 100644
index 0000000..d5c94da
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/simpletest/tests/taxonomy_test.install
@@ -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;
+}