summaryrefslogtreecommitdiff
path: root/modules/forum/forum.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/forum/forum.install')
-rw-r--r--modules/forum/forum.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/forum/forum.install b/modules/forum/forum.install
index d17b9ba12..71f606eb6 100644
--- a/modules/forum/forum.install
+++ b/modules/forum/forum.install
@@ -50,3 +50,24 @@ function forum_uninstall() {
variable_del('forum_block_num_0');
variable_del('forum_block_num_1');
}
+
+/**
+ * Implementation of hook_schema().
+ */
+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;
+}
+