You are here

function progress_schema in Progress 6

Same name and namespace in other branches
  1. 8 progress.install \progress_schema()
  2. 7 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,
      ),
      'progress' => array(
        'description' => 'Progress status',
        'type' => 'float',
        'size' => 'big',
        'not null' => TRUE,
      ),
      '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,
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
  return $schema;
}