function background_process_schema in Background Process 6
Same name and namespace in other branches
- 8 background_process.install \background_process_schema()
- 7.2 background_process.install \background_process_schema()
- 7 background_process.install \background_process_schema()
Implements hook_schema().
File
- ./
background_process.install, line 44 - This is the installation file for the Background Process module
Code
function background_process_schema() {
$schema = array();
$schema['background_process'] = array(
'fields' => array(
'handle' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'callback' => array(
'type' => 'text',
'not null' => FALSE,
),
'args' => array(
'type' => 'blob',
'size' => 'big',
'not null' => FALSE,
),
'uid' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'token' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
),
'service_host' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
'default' => '',
),
'start_stamp' => array(
'type' => 'varchar',
'length' => '18',
'not null' => FALSE,
),
'exec_status' => array(
'type' => 'int',
'size' => 'normal',
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'handle',
),
);
return $schema;
}