function security_review_schema in Security Review 7
Same name and namespace in other branches
- 6 security_review.install \security_review_schema()
Implements hook_schema().
File
- ./
security_review.install, line 19 - Install, update and uninstall functions for the security_review module.
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;
}