diff options
Diffstat (limited to 'modules/book/book.schema')
-rw-r--r-- | modules/book/book.schema | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/modules/book/book.schema b/modules/book/book.schema index be3c54067..f690f38dc 100644 --- a/modules/book/book.schema +++ b/modules/book/book.schema @@ -4,16 +4,15 @@ function book_schema() { $schema['book'] = array( 'fields' => array( - 'vid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0), - 'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0), - 'parent' => array('type' => 'int', 'not null' => TRUE, 'default' => 0), - 'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny') + 'mlid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0), + 'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0), + 'bid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0), ), 'indexes' => array( - 'nid' => array('nid'), - 'parent' => array('parent') + 'nid' => array('nid'), + 'bid' => array('bid') ), - 'primary key' => array('vid'), + 'primary key' => array('mlid'), ); return $schema; |