diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-23 12:37:58 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-23 12:37:58 -0300 |
commit | 6e4b00447476e0a18905bfb7453afeb77856d570 (patch) | |
tree | e075292de4659995cb42938daa1eeab735d4f98a /muamba.install | |
download | muamba-6e4b00447476e0a18905bfb7453afeb77856d570.tar.gz muamba-6e4b00447476e0a18905bfb7453afeb77856d570.tar.bz2 |
Initial import
Diffstat (limited to 'muamba.install')
-rw-r--r-- | muamba.install | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/muamba.install b/muamba.install new file mode 100644 index 0000000..4e38f49 --- /dev/null +++ b/muamba.install @@ -0,0 +1,45 @@ +<?php + +/** + * @file + * Muamba installation functions. + */ + +function muamba_install() { +} + +function muamba_schema() { + $schema['muamba'] = array( + 'description' => 'The base table for muamba assets.', + 'fields' => array( + 'quantity' => array( + 'description' => 'Asset quantity', + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 1, + ), + 'nid' => array( + 'description' => t('The {node}.nid of the borrowed item.'), + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 0, + ), + 'uid' => array( + 'description' => t('The {user}.uid requesting an item.'), + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 0, + ), + 'primary key' => array('uid', 'nid'), + 'indexes' => array( + 'nid' => array('nid'), + 'uid' => array('uid'), + ), + ), + ); + + return $schema; +} |