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.install16
1 files changed, 10 insertions, 6 deletions
diff --git a/modules/book/book.install b/modules/book/book.install
index 445a20a4a..72a9df86c 100644
--- a/modules/book/book.install
+++ b/modules/book/book.install
@@ -68,11 +68,13 @@ function book_update_6000() {
'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
'bid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
),
+ 'primary key' => array('mlid'),
+ 'unique keys' => array(
+ 'nid' => array('nid'),
+ ),
'indexes' => array(
- 'nid' => array('nid'),
- 'bid' => array('bid')
+ 'bid' => array('bid'),
),
- 'primary key' => array('mlid'),
);
// Add the node type.
_book_install_type_create();
@@ -273,11 +275,13 @@ function book_schema() {
'description' => t("The book ID is the {book}.nid of the top-level page."),
),
),
+ 'primary key' => array('mlid'),
+ 'unique keys' => array(
+ 'nid' => array('nid'),
+ ),
'indexes' => array(
- 'nid' => array('nid'),
- 'bid' => array('bid')
+ 'bid' => array('bid'),
),
- 'primary key' => array('mlid'),
);
return $schema;