diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-23 13:12:54 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-23 13:12:54 -0300 |
commit | 38ceba80bef2c989d3431ba3173ea1f9a58b6fa6 (patch) | |
tree | fb5bbb32c97f6a4d5deb001c9b1442d341a395d4 /muamba.install | |
parent | d39c2f5803fb6f01bc2b42b1f955fee3c2c64038 (diff) | |
download | muamba-38ceba80bef2c989d3431ba3173ea1f9a58b6fa6.tar.gz muamba-38ceba80bef2c989d3431ba3173ea1f9a58b6fa6.tar.bz2 |
Fixing schema
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'), ), ); |