/[drupal]/contributions/modules/buddylist2/buddylist_api/buddylist_api.install
ViewVC logotype

Diff of /contributions/modules/buddylist2/buddylist_api/buddylist_api.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.3, Tue Jul 29 07:30:53 2008 UTC revision 1.1.2.4, Tue Sep 2 13:16:04 2008 UTC
# Line 1  Line 1 
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
# Line 61  function buddylist_api_schema() { Line 61  function buddylist_api_schema() {
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'),
# Line 82  function buddylist_api_schema() { Line 87  function buddylist_api_schema() {
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',
# Line 95  function buddylist_api_schema() { Line 106  function buddylist_api_schema() {
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    );    );

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

  ViewVC Help
Powered by ViewVC 1.1.2