summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-10-05 14:43:26 +0000
committerDries Buytaert <dries@buytaert.net>2007-10-05 14:43:26 +0000
commit39706e3c51cf206ca6669bbb7a090d2f7d394591 (patch)
tree9286ccd302d526ea8a1de799081356fcc77c28a3 /modules/taxonomy
parentd568128b9f7a0181b31e9baa087022e892352ea7 (diff)
downloadbrdo-39706e3c51cf206ca6669bbb7a090d2f7d394591.tar.gz
brdo-39706e3c51cf206ca6669bbb7a090d2f7d394591.tar.bz2
- Patch #150245 by webchick, bjaspan, ralf, Arancaytar et al: move the .schema files into .install files to prevent mistakes.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.schema100
1 files changed, 0 insertions, 100 deletions
diff --git a/modules/taxonomy/taxonomy.schema b/modules/taxonomy/taxonomy.schema
deleted file mode 100644
index 36d171251..000000000
--- a/modules/taxonomy/taxonomy.schema
+++ /dev/null
@@ -1,100 +0,0 @@
-<?php
-// $Id$
-
-function taxonomy_schema() {
- $schema['term_data'] = array(
- 'fields' => array(
- 'tid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
- 'vid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
- 'name' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
- 'description' => array('type' => 'text', 'not null' => FALSE, 'size' => 'big'),
- 'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny')
- ),
- 'primary key' => array('tid'),
- 'indexes' => array('vid' => array('vid')),
- );
-
- $schema['term_hierarchy'] = array(
- 'fields' => array(
- 'tid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
- 'parent' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0)
- ),
- 'indexes' => array(
- 'parent' => array('parent'),
- 'tid' => array('tid')
- ),
- 'primary key' => array('tid', 'parent'),
- );
-
- $schema['term_node'] = array(
- 'fields' => array(
- 'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
- 'vid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
- 'tid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0)
- ),
- 'indexes' => array(
- 'nid' => array('nid'),
- 'tid' => array('tid'),
- 'vid' => array('vid')
- ),
- 'primary key' => array(
- 'vid',
- 'tid',
- 'nid'
- ),
- );
-
- $schema['term_relation'] = array(
- 'fields' => array(
- 'trid' => array('type' => 'serial', 'not null' => TRUE),
- 'tid1' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
- 'tid2' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0)
- ),
- 'indexes' => array(
- 'tid1' => array('tid1'),
- 'tid2' => array('tid2')
- ),
- 'primary key' => array('trid'),
- );
-
- $schema['term_synonym'] = array(
- 'fields' => array(
- 'tsid' => array('type' => 'serial', 'not null' => TRUE),
- 'tid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
- 'name' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '')
- ),
- 'indexes' => array(
- 'name' => array(array('name', 3)),
- 'tid' => array('tid')
- ),
- 'primary key' => array('tsid'),
- );
-
- $schema['vocabulary'] = array(
- 'fields' => array(
- 'vid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
- 'name' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
- 'description' => array('type' => 'text', 'not null' => FALSE, 'size' => 'big'),
- 'help' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
- 'relations' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
- 'hierarchy' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
- 'multiple' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
- 'required' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
- 'tags' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
- 'module' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
- 'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny')
- ),
- 'primary key' => array('vid'),
- );
-
- $schema['vocabulary_node_types'] = array(
- 'fields' => array(
- 'vid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
- 'type' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => '')
- ),
- 'primary key' => array('vid', 'type'),
- );
-
- return $schema;
-}
-