function perfmon_schema in Performance monitor 7
Same name and namespace in other branches
- 8 perfmon.install \perfmon_schema()
Implements hook_schema().
File
- ./
perfmon.install, line 18 - Install, update and uninstall functions for the perfmon module.
Code
function perfmon_schema() {
$schema['perfmon'] = array(
'fields' => array(
'testname' => array(
'type' => 'varchar',
'length' => 160,
'not null' => TRUE,
'default' => '',
),
'result' => array(
'type' => 'varchar',
'length' => 160,
'not null' => TRUE,
'default' => 0,
),
'lastrun' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'testname',
),
);
$schema['perfmon_test'] = array(
'fields' => array(
'id' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'testname' => array(
'type' => 'varchar',
'length' => 160,
'not null' => TRUE,
'default' => 0,
),
'data' => array(
'type' => 'varchar',
'length' => 160,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'id',
),
);
return $schema;
}