summaryrefslogtreecommitdiff
path: root/modules/forum/forum.schema
diff options
context:
space:
mode:
Diffstat (limited to 'modules/forum/forum.schema')
-rw-r--r--modules/forum/forum.schema20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/forum/forum.schema b/modules/forum/forum.schema
new file mode 100644
index 000000000..56a7d688f
--- /dev/null
+++ b/modules/forum/forum.schema
@@ -0,0 +1,20 @@
+<?php
+// $Id$
+
+function forum_schema() {
+ $schema['forum'] = 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')
+ ),
+ 'primary key' => array('vid'),
+ );
+
+ return $schema;
+}
+