function seochecklist_schema in SEO Checklist 6.3
Same name and namespace in other branches
- 6.2 seochecklist.install \seochecklist_schema()
- 7.3 seochecklist.install \seochecklist_schema()
Implementation of hook_schema().
File
- ./
seochecklist.install, line 12 - Install, update and uninstall functions for the seochecklist module.
Code
function seochecklist_schema() {
$schema['seo_checklist'] = array(
'description' => 'seo_checklist',
'fields' => array(
'id' => array(
'type' => 'serial',
'size' => 'tiny',
'not null' => TRUE,
'description' => 'id',
),
'order_id' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'description' => 'order id',
'default' => 0,
),
'completed' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'UNIX timestamp of when this task was completed, or 0 if the task has not yet been completed.',
),
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'The {user}.uid of the account that completed this task.',
),
),
'primary key' => array(
'id',
),
);
return $schema;
}