| 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 |
| 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'), |
| 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'), |
| 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 |
|
} |