function lingotek_schema in Lingotek Translation 6
Same name and namespace in other branches
- 8 lingotek.install \lingotek_schema()
- 8.2 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.5.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()
File
- ./
lingotek.install, line 40 - Installation for Lingotek Community Translation Module
Code
function lingotek_schema() {
$schema['lingotek'] = array(
'description' => 'Table for storing node related data.',
'fields' => array(
'nid' => array(
'description' => 'The primary identifier for a node',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'lingokey' => array(
'description' => 'Key in key/value pairs',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'lingovalue' => array(
'description' => 'Value of the specified key',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'nid',
'lingokey',
),
);
$schema['lingotek_mt_queue'] = array(
'description' => 'Table for storing a Machine Translation queue.',
'fields' => array(
'uid' => array(
'description' => 'The primary identifier for a user.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'description' => 'The primary identifier for a node.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'language' => array(
'description' => 'Language to machine translate',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'engine' => array(
'description' => 'Engine used to machine translate',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
),
);
return $schema;
}