summaryrefslogtreecommitdiff
path: root/modules/book/book.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/book/book.install')
-rw-r--r--modules/book/book.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/book/book.install b/modules/book/book.install
new file mode 100644
index 000000000..7e80ccd44
--- /dev/null
+++ b/modules/book/book.install
@@ -0,0 +1,17 @@
+<?php
+
+function book_install() {
+ switch ($GLOBALS['db_type']) {
+ case 'mysql':
+ case 'mysqli':
+ db_query("CREATE TABLE {book} (
+ vid int(10) unsigned NOT NULL default '0',
+ nid int(10) unsigned NOT NULL default '0',
+ parent int(10) NOT NULL default '0',
+ weight tinyint(3) NOT NULL default '0',
+ PRIMARY KEY (vid),
+ KEY nid (nid),
+ KEY parent (parent)
+ ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
+ }
+} \ No newline at end of file