diff options
Diffstat (limited to 'muamba.install')
-rw-r--r-- | muamba.install | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/muamba.install b/muamba.install index 23f7585..14debbe 100644 --- a/muamba.install +++ b/muamba.install @@ -12,25 +12,25 @@ function muamba_schema() { $schema['muamba'] = array( 'description' => 'The base table for muamba assets.', 'fields' => array( - 'nid' => array( - 'description' => t('The {node}.nid of the borrowed item.'), + 'uid' => array( + 'description' => t('The {user}.uid requesting an item.'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), - 'uid' => array( - 'description' => t('The {user}.uid requesting an item.'), + 'nid' => array( + 'description' => t('The {node}.nid of the borrowed item.'), 'type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, ), - 'primary key' => array('uid', 'nid'), - 'indexes' => array( - 'nid' => array('nid'), - 'uid' => array('uid'), - ), + ), + 'primary key' => array('uid', 'nid'), + 'indexes' => array( + 'nid' => array('nid'), + 'uid' => array('uid'), ), ); |