function download_count_schema in Download Count 6
Same name and namespace in other branches
- 8 download_count.install \download_count_schema()
- 6.2 download_count.install \download_count_schema()
- 7.3 download_count.install \download_count_schema()
- 7.2 download_count.install \download_count_schema()
Implementation of hook_schema().
File
- ./
download_count.install, line 15
Code
function download_count_schema() {
$schema['file_downloads'] = array(
'fields' => array(
'filename' => array(
'type' => 'varchar',
'length' => '255',
'not null' => 1,
),
'timestamp' => array(
'type' => 'int',
'not null' => 1,
'default' => 0,
'disp-width' => '11',
),
'count' => array(
'type' => 'int',
'not null' => 1,
'default' => 0,
'disp-width' => '11',
),
),
'unique keys' => array(
'filename' => array(
'filename',
),
),
);
return $schema;
}