diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-10-05 14:43:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-10-05 14:43:26 +0000 |
commit | 39706e3c51cf206ca6669bbb7a090d2f7d394591 (patch) | |
tree | 9286ccd302d526ea8a1de799081356fcc77c28a3 /modules/book | |
parent | d568128b9f7a0181b31e9baa087022e892352ea7 (diff) | |
download | brdo-39706e3c51cf206ca6669bbb7a090d2f7d394591.tar.gz brdo-39706e3c51cf206ca6669bbb7a090d2f7d394591.tar.bz2 |
- Patch #150245 by webchick, bjaspan, ralf, Arancaytar et al: move the .schema files into .install files to prevent mistakes.
Diffstat (limited to 'modules/book')
-rw-r--r-- | modules/book/book.install | 21 | ||||
-rw-r--r-- | modules/book/book.schema | 20 |
2 files changed, 21 insertions, 20 deletions
diff --git a/modules/book/book.install b/modules/book/book.install index fdbafe48a..5efeeee0b 100644 --- a/modules/book/book.install +++ b/modules/book/book.install @@ -244,3 +244,24 @@ function book_update_6000() { return $ret; } +/** + * Implementation of hook_schema(). + */ +function book_schema() { + $schema['book'] = array( + 'fields' => array( + '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'), + 'bid' => array('bid') + ), + 'primary key' => array('mlid'), + ); + + return $schema; +} + + diff --git a/modules/book/book.schema b/modules/book/book.schema deleted file mode 100644 index f690f38dc..000000000 --- a/modules/book/book.schema +++ /dev/null @@ -1,20 +0,0 @@ -<?php -// $Id$ - -function book_schema() { - $schema['book'] = array( - 'fields' => array( - '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'), - 'bid' => array('bid') - ), - 'primary key' => array('mlid'), - ); - - return $schema; -} - |