mediamosa_server_job_schema()Implements hook_schema().
sites/all/modules/mediamosa/core/server/job/mediamosa_server_job.install.inc, line 51
<?php
function mediamosa_server_job_schema() {
$a_schema[mediamosa_server_job_db::TABLE_NAME] = array(
'description' => t('The transcode job table.'),
'fields' => array(
mediamosa_server_job_db::SERVER_ID => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
'description' => t('The server ID points to mediamosa_server nid field.'),
),
mediamosa_server_job_db::JOB_ID => array(
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
'description' => t('The job ID.'),
),
mediamosa_server_job_db::PROGRESS => array(
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'description' => t('The progress.'),
'default' => 0,
),
mediamosa_server_job_db::CREATED => array(
'type' => 'datetime',
'not null' => TRUE,
'description' => t('The date and time when server job was created.'),
),
mediamosa_server_job_db::CHANGED => array(
'type' => 'datetime',
'default' => NULL,
'description' => t('The date and time when server job was changed last.'),
),
),
'primary key' => array(mediamosa_server_job_db::SERVER_ID, mediamosa_server_job_db::JOB_ID),
'foreign keys' => array(
mediamosa_server_job_db::JOB_ID => array(mediamosa_job_db::TABLE_NAME => mediamosa_job_db::ID),
),
);
return $a_schema;
}
?>