mediamosa_job_server_still_schema()Implements hook_schema().
sites/all/modules/mediamosa/core/job/server/still/mediamosa_job_server_still.install.inc, line 51
<?php
function mediamosa_job_server_still_schema() {
$a_schema[mediamosa_job_server_still_db::TABLE_NAME] = array(
'description' => t('The transcode job table.'),
'fields' => array(
mediamosa_job_server_still_db::ID => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => t('The job ID.'),
),
mediamosa_job_server_still_db::SIZE => array(
'type' => 'varchar',
'length' => mediamosa_job_server_still_db::SIZE_LENGTH,
'default' => NULL,
'description' => t('The size for still.'),
),
mediamosa_job_server_still_db::FRAMETIME => array(
'type' => 'int',
'description' => t('The still frametime.'),
),
mediamosa_job_server_still_db::H_PADDING => array(
'type' => 'int',
'unsigned' => TRUE,
'default' => NULL,
'description' => t('The horizontal padding.'),
),
mediamosa_job_server_still_db::V_PADDING => array(
'type' => 'int',
'unsigned' => TRUE,
'default' => NULL,
'description' => t('The vertical padding.'),
),
mediamosa_job_server_still_db::BLACKSTILL_CHECK => array(
'description' => t('Enable to prevent dark empty stills.'),
'type' => "enum('" . implode("','", array(mediamosa_job_server_still_db::BLACKSTILL_CHECK_FALSE, mediamosa_job_server_still_db::BLACKSTILL_CHECK_TRUE)) . "')",
'not null' => TRUE,
'mysql_type' => "enum('" . implode("','", array(mediamosa_job_server_still_db::BLACKSTILL_CHECK_FALSE, mediamosa_job_server_still_db::BLACKSTILL_CHECK_TRUE)) . "')",
'default' => mediamosa_job_server_still_db::BLACKSTILL_CHECK_FALSE,
),
mediamosa_job_server_still_db::STILL_PARAMETERS => array(
'type' => 'text',
'default' => NULL,
'description' => t('Still parameters.'),
),
mediamosa_job_server_still_db::CREATED => array(
'type' => 'datetime',
'not null' => TRUE,
'description' => t('The date and time when still job was created.'),
),
mediamosa_job_server_still_db::CHANGED => array(
'type' => 'datetime',
'default' => NULL,
'description' => t('The date and time when still job was changed last.'),
),
),
'primary key' => array(mediamosa_job_server_still_db::ID),
'foreign keys' => array(
mediamosa_job_server_still_db::ID => array(mediamosa_job_server_db::TABLE_NAME => mediamosa_job_server_db::ID),
),
);
return $a_schema;
}
?>