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.install14
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/book/book.install b/modules/book/book.install
index cfc297555..377d219ad 100644
--- a/modules/book/book.install
+++ b/modules/book/book.install
@@ -14,5 +14,17 @@ function book_install() {
KEY nid (nid),
KEY parent (parent)
) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
+ break;
+ case 'pgsql':
+ db_query("CREATE TABLE {book} (
+ vid uint NOT NULL default '0',
+ nid uint NOT NULL default '0',
+ parent int NOT NULL default '0',
+ weight smallint NOT NULL default '0',
+ PRIMARY KEY (vid)
+ )");
+ db_query("CREATE INDEX {book}_nid_idx ON {book} (nid)");
+ db_query("CREATE INDEX {book}_parent_idx ON {book} (parent)");
+ break;
}
-} \ No newline at end of file
+}