function progress_schema in Progress 7
Same name and namespace in other branches
- 8 progress.install \progress_schema()
- 6 progress.install \progress_schema()
@file
Installation file for the Progress module
File
- ./
progress.install, line 9 - Installation file for the Progress module
Code
function progress_schema() {
$schema = array();
$schema['progress'] = array(
'description' => 'Progress',
'fields' => array(
'name' => array(
'description' => 'Name of progress',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'progress' => array(
'description' => 'Progress status',
'type' => 'float',
'size' => 'big',
'not null' => TRUE,
'default' => 0,
),
'message' => array(
'description' => 'Message for current progress',
'type' => 'text',
'not null' => TRUE,
),
'start_stamp' => array(
'description' => 'Start time in unix timestamp',
'type' => 'float',
'size' => 'big',
'not null' => TRUE,
'default' => 0,
),
'end_stamp' => array(
'description' => 'End time in unix timestamp',
'type' => 'float',
'size' => 'big',
'not null' => TRUE,
'default' => 0,
),
'current_stamp' => array(
'description' => 'Current time in unix timestamp',
'type' => 'float',
'size' => 'big',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'name',
),
);
return $schema;
}