summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-04 06:50:07 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-04 06:50:07 +0000
commitbc37b6dc0ede6ae3f6ef26cf06a006ab92c4b7c3 (patch)
tree66850826b7afdd1e646f84281e00d10edc465909 /modules/taxonomy/taxonomy.install
parentc7824035b448bf6887fa6a243db8d76aede2fd98 (diff)
downloadbrdo-bc37b6dc0ede6ae3f6ef26cf06a006ab92c4b7c3.tar.gz
brdo-bc37b6dc0ede6ae3f6ef26cf06a006ab92c4b7c3.tar.bz2
#526120 by catch: Remove the related terms feature from Taxonomy module. This can now be accomplished with Field API.
Diffstat (limited to 'modules/taxonomy/taxonomy.install')
-rw-r--r--modules/taxonomy/taxonomy.install50
1 files changed, 13 insertions, 37 deletions
diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install
index 40b1be298..807c93375 100644
--- a/modules/taxonomy/taxonomy.install
+++ b/modules/taxonomy/taxonomy.install
@@ -140,43 +140,6 @@ function taxonomy_schema() {
),
'primary key' => array('tid', 'vid'),
);
-
- $schema['taxonomy_term_relation'] = array(
- 'description' => 'Stores non-hierarchical relationships between terms.',
- 'fields' => array(
- 'trid' => array(
- 'type' => 'serial',
- 'not null' => TRUE,
- 'description' => 'Primary Key: Unique term relation ID.',
- ),
- 'tid1' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'The {taxonomy_term_data}.tid of the first term in a relationship.',
- ),
- 'tid2' => array(
- 'type' => 'int',
- 'unsigned' => TRUE,
- 'not null' => TRUE,
- 'default' => 0,
- 'description' => 'The {taxonomy_term_data}.tid of the second term in a relationship.',
- ),
- ),
- 'unique keys' => array(
- 'tid1_tid2' => array('tid1', 'tid2'),
- ),
- 'indexes' => array(
- 'tid2' => array('tid2'),
- ),
- 'foreign keys' => array(
- 'tid1' => array('taxonomy_term_data' => 'tid'),
- 'tid2' => array('taxonomy_term_data' => 'tid'),
- ),
- 'primary key' => array('trid'),
- );
-
$schema['taxonomy_term_synonym'] = array(
'description' => 'Stores term synonyms.',
'fields' => array(
@@ -362,3 +325,16 @@ function taxonomy_update_7002() {
}
return $ret;
}
+
+/**
+ * Remove the related terms setting from vocabularies.
+ *
+ * This setting has not been used since Drupal 6. The {taxonomy_relations} table
+ * itself is retained to allow for data to be upgraded.
+ */
+function taxonomy_update_7003() {
+ $ret = array();
+ db_drop_field($ret, 'taxonomy_vocabulary', 'relations');
+
+ return $ret;
+}