function role_expire_update_6121 in Role Expire 6
File
- ./
role_expire.install, line 133 - Role expire install.
Code
function role_expire_update_6121() {
$ret = array();
$role_expire_length_schema = array(
'description' => t('Length in days to assign each role by default.'),
'fields' => array(
'rid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => t('The role_id.'),
),
'duration' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => t('The default duration for the role.'),
),
),
'indexes' => array(
'rid' => array(
'rid',
),
),
);
db_create_table($ret, 'role_expire_length', $role_expire_length_schema);
return $ret;
}