| 1 |
<?php |
<?php |
| 2 |
// $Id: buddylist_api.install,v 1.1.2.2 2008/07/25 16:49:10 nodestroy Exp $ |
// $Id: buddylist_api.install,v 1.1.2.3 2008/07/29 07:30:53 nodestroy Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 61 |
'type' => 'int', |
'type' => 'int', |
| 62 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 63 |
'not null' => TRUE), |
'not null' => TRUE), |
| 64 |
|
'init_id' => array( |
| 65 |
|
'description' => t('User ID of initializing user.'), |
| 66 |
|
'type' => 'int', |
| 67 |
|
'unsigned' => TRUE, |
| 68 |
|
'not null' => TRUE), |
| 69 |
), |
), |
| 70 |
'unique keys' => array( |
'unique keys' => array( |
| 71 |
'relationship' => array('requester_id', 'requestee_id', 'rtid'), |
'relationship' => array('requester_id', 'requestee_id', 'rtid'), |
| 87 |
'type' => 'serial', |
'type' => 'serial', |
| 88 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 89 |
'not null' => TRUE), |
'not null' => TRUE), |
| 90 |
|
'mname' => array( |
| 91 |
|
'description' => t('Machine readable name of the relationship.'), |
| 92 |
|
'type' => 'varchar', |
| 93 |
|
'length' => 255, |
| 94 |
|
'not null' => TRUE, |
| 95 |
|
'default' => ''), |
| 96 |
'name' => array( |
'name' => array( |
| 97 |
'description' => t('Name of the relationship.'), |
'description' => t('Name of the relationship.'), |
| 98 |
'type' => 'varchar', |
'type' => 'varchar', |
| 106 |
'not null' => TRUE, |
'not null' => TRUE, |
| 107 |
'default' => 0, |
'default' => 0, |
| 108 |
'size' => 'tiny'), |
'size' => 'tiny'), |
| 109 |
'type' => array( |
'backrelation' => array( |
| 110 |
'description' => t('0 or 1, 1 means user generated, rows with 0 are from contrib modules.'), |
'description' => t('0 or 1, 1 stands for free backrelation.'), |
| 111 |
'type' => 'int', |
'type' => 'int', |
| 112 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 113 |
'not null' => TRUE), |
'not null' => TRUE, |
| 114 |
|
'default' => 0, |
| 115 |
|
'size' => 'tiny'), |
| 116 |
'active' => array( |
'active' => array( |
| 117 |
'description' => t('0 or 1, 1 means active'), |
'description' => t('0 or 1, 1 means active'), |
| 118 |
'type' => 'int', |
'type' => 'int', |
| 119 |
'unsigned' => TRUE, |
'unsigned' => TRUE, |
| 120 |
'not null' => TRUE), |
'not null' => TRUE, |
| 121 |
|
'size' => 'tiny'), |
| 122 |
), |
), |
| 123 |
'unique keys' => array( |
'unique keys' => array( |
| 124 |
'name' => array('name'), |
'name' => array('mname'), |
| 125 |
), |
), |
| 126 |
'primary key' => array('rtid') |
'primary key' => array('rtid') |
| 127 |
); |
); |