function regcode_roles_schema in Registration codes 6.2
Same name and namespace in other branches
- 6 regcode_roles/regcode_roles.install \regcode_roles_schema()
- 7.2 regcode_roles/regcode_roles.install \regcode_roles_schema()
- 7 regcode_roles/regcode_roles.install \regcode_roles_schema()
Implementation of hook_schema()
1 call to regcode_roles_schema()
- regcode_roles_update_6001 in regcode_roles/
regcode_roles.install - Implements hook_update_N().
File
- regcode_roles/
regcode_roles.install, line 35
Code
function regcode_roles_schema() {
$schema['regcode_roles'] = array(
'description' => t('Store registration role rules'),
'fields' => array(
'id' => array(
'description' => t('ID'),
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'term_id' => array(
'description' => t('Term ID'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'role_id' => array(
'description' => t('Role ID'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'expire_date' => array(
'description' => t('Expiration date'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
'expire_duration' => array(
'description' => t('Expiration duration'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
),
'primary key' => array(
'id',
),
);
return $schema;
}