summaryrefslogtreecommitdiff
path: root/modules/forum
diff options
context:
space:
mode:
Diffstat (limited to 'modules/forum')
-rw-r--r--modules/forum/forum.install21
-rw-r--r--modules/forum/forum.schema18
2 files changed, 21 insertions, 18 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;
+}
+
diff --git a/modules/forum/forum.schema b/modules/forum/forum.schema
deleted file mode 100644
index 738fb8e39..000000000
--- a/modules/forum/forum.schema
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-
-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;
-}