function lingotek_schema in Lingotek Translation 3.5.x
Same name and namespace in other branches
- 8 lingotek.install \lingotek_schema()
- 8.2 lingotek.install \lingotek_schema()
- 6 lingotek.install \lingotek_schema()
- 7.7 lingotek.install \lingotek_schema()
- 7.2 lingotek.install \lingotek_schema()
- 7.3 lingotek.install \lingotek_schema()
- 7.4 lingotek.install \lingotek_schema()
- 7.5 lingotek.install \lingotek_schema()
- 7.6 lingotek.install \lingotek_schema()
- 4.0.x lingotek.install \lingotek_schema()
- 3.0.x lingotek.install \lingotek_schema()
- 3.1.x lingotek.install \lingotek_schema()
- 3.2.x lingotek.install \lingotek_schema()
- 3.3.x lingotek.install \lingotek_schema()
- 3.4.x lingotek.install \lingotek_schema()
- 3.6.x lingotek.install \lingotek_schema()
- 3.7.x lingotek.install \lingotek_schema()
- 3.8.x lingotek.install \lingotek_schema()
Implements hook_schema().
File
- ./
lingotek.install, line 28 - Install, update and uninstall functions for the lingotek module.
Code
function lingotek_schema() {
$schema['lingotek_content_metadata'] = [
'description' => 'Stores Lingotek-related metadata about Drupal entities.',
'fields' => [
'document_id' => [
'description' => 'The Lingotek document identifier.',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
],
'entity_type' => [
'description' => 'The entity type (node, comment, etc.).',
'type' => 'varchar',
'length' => 128,
'not null' => TRUE,
'default' => '',
],
'entity_id' => [
'description' => 'The primary identifier for the entity.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
],
],
'primary key' => [
'document_id',
],
];
$schema['lingotek_translation_agent'] = [
'description' => 'An assignment of IDs to agents from which translations were added.',
'fields' => [
'id' => [
'description' => 'the ID assigned to a given translation agent.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
],
'name' => [
'description' => 'The name of a given tool for adding translations.',
'type' => 'varchar',
'length' => 63,
'not null' => TRUE,
'default' => '',
],
],
'primary key' => [
'id',
],
];
$schema['lingotek_config_map'] = [
'description' => 'An assignment of lids from locales_source and locales_target to set_ids for translation by Lingotek.',
'fields' => [
'lid' => [
'description' => 'The ID assigned by the i18n_string module.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
],
'set_id' => [
'description' => 'The ID of the set assigned to the string by the Lingotek Translation module.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
],
'current' => [
'description' => 'Tells whether the translation for the individual config item is dirty and needs to be updated or not.',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
],
],
'primary key' => [
'lid',
],
];
return $schema;
}