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