function restrict_by_ip_schema in Restrict Login or Role Access by IP Address 6.2
Same name and namespace in other branches
- 6.3 restrict_by_ip.install \restrict_by_ip_schema()
- 7.3 restrict_by_ip.install \restrict_by_ip_schema()
Implementation of hook_schema().
File
- ./
restrict_by_ip.install, line 27
Code
function restrict_by_ip_schema() {
$schema['restrict_by_ip'] = array(
'description' => t('The Restrict By IP Table'),
'fields' => array(
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
),
'rid' => array(
'type' => 'int',
'unsigned' => TRUE,
),
'restrict_by_ip_type' => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
),
'restrict_by_ip_address' => array(
'type' => 'varchar',
'length' => 128,
),
),
//'primary key' => array('uid'),
'key' => array(
'uid',
),
'key' => array(
'rid',
),
);
return $schema;
}