mediamosa_webservice_schema()Implements hook_schema().
array
sites/all/modules/mediamosa/core/webservice/mediamosa_webservice.install.inc, line 97
<?php
function mediamosa_webservice_schema() {
$schema[mediamosa_webservice_db::TABLE_NAME] = array(
'description' => t('The webservice are modules of mediamosa, which can be enabled/disabled per application.'),
'fields' => array(
mediamosa_webservice_db::ID => array(
'description' => t('The webservice ID.'),
'type' => 'serial',
'not null' => TRUE,
),
mediamosa_webservice_db::VERSION => array(
'description' => t('The version of the webservice.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
mediamosa_webservice_db::HANDLE => array(
'description' => t('The handle of the webservice.'),
'type' => 'varchar',
'length' => mediamosa_webservice_db::HANDLE_LENGTH,
'not null' => TRUE,
),
mediamosa_webservice_db::DESCRIPTION => array(
'description' => t('The handle of the webservice.'),
'type' => 'varchar',
'length' => mediamosa_webservice_db::DESCRIPTION_LENGTH,
'not null' => TRUE,
),
mediamosa_webservice_db::STATUS => array(
'description' => t('The webservice main switch.'),
'type' => "enum('" . implode("','", array(mediamosa_webservice_db::STATUS_FALSE, mediamosa_webservice_db::STATUS_TRUE)) . "')",
'not null' => TRUE,
'mysql_type' => "enum('" . implode("','", array(mediamosa_webservice_db::STATUS_FALSE, mediamosa_webservice_db::STATUS_TRUE)) . "')",
'default' => mediamosa_webservice_db::STATUS_TRUE,
),
),
'primary key' => array(mediamosa_webservice_db::ID),
'unique keys' => array(
'idx_handle' => array(mediamosa_webservice_db::HANDLE)
),
);
return $schema;
}
?>