function security_review_schema in Security Review 6
Same name and namespace in other branches
- 7 security_review.install \security_review_schema()
Implementation of hook_schema().
File
- ./
security_review.install, line 25 - Install file for security_review module creates security_review table.
Code
function security_review_schema() {
$schema['security_review'] = array(
'fields' => array(
'namespace' => array(
'type' => 'varchar',
'length' => 160,
'not null' => TRUE,
'default' => '',
),
'reviewcheck' => array(
'type' => 'varchar',
'length' => 160,
'not null' => TRUE,
'default' => '',
),
'result' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'lastrun' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'skip' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'skiptime' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'skipuid' => array(
'type' => 'int',
'default' => NULL,
),
),
'primary key' => array(
'namespace',
'reviewcheck',
),
);
return $schema;
}