/[drupal]/contributions/modules/simple_access/simple_access.install
ViewVC logotype

Diff of /contributions/modules/simple_access/simple_access.install

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

revision 1.10.2.3, Tue Sep 30 00:11:57 2008 UTC revision 1.10.2.4, Wed Oct 1 02:14:44 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: simple_access.install,v 1.10.2.2 2008/09/29 08:06:41 gordon Exp $  // $Id: simple_access.install,v 1.10.2.3 2008/09/30 00:11:57 gordon Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 91  function simple_access_schema() { Line 91  function simple_access_schema() {
91          'type' => 'varchar', 'length' => 50, 'not null' => TRUE,          'type' => 'varchar', 'length' => 50, 'not null' => TRUE,
92        ),        ),
93        'weight' => array(        'weight' => array(
94          'type' => 'int', 'size' => 'tiny', 'unsigned' => TRUE,          'type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0,
         'not null' => TRUE, 'default' => 0,  
95        ),        ),
96      ),      ),
97      'primary key' => array('gid'),      'primary key' => array('gid'),
# Line 119  function simple_access_schema() { Line 118  function simple_access_schema() {
118          'type' => 'varchar', 'length' => 50, 'not null' => TRUE,          'type' => 'varchar', 'length' => 50, 'not null' => TRUE,
119        ),        ),
120        'weight' => array(        'weight' => array(
121          'type' => 'int', 'size' => 'tiny', 'unsigned' => TRUE,          'type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0,
         'not null' => TRUE, 'default' => 0,  
122        ),        ),
123      ),      ),
124      'primary key' => array('pid'),      'primary key' => array('pid'),
# Line 227  function simple_access_update_6() { Line 225  function simple_access_update_6() {
225    }    }
226    
227    return $ret;    return $ret;
 }  
228    }
229    
230    function simple_access_update_7() {
231      $ret = array();
232      db_change_field($ret, 'simple_access_groups', 'weight', 'weight', array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0,));
233      db_change_field($ret, 'simple_access_profiles', 'weight', 'weight', array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0,));
234    
235      return $ret;
236    }

Legend:
Removed from v.1.10.2.3  
changed lines
  Added in v.1.10.2.4

  ViewVC Help
Powered by ViewVC 1.1.2