function entity_translation_upgrade_schema in Entity Translation 7
Implements hook_schema().
File
- entity_translation_upgrade/
entity_translation_upgrade.install, line 11 - Schema declaration for the entity_translation_upgrade module.
Code
function entity_translation_upgrade_schema() {
$schema['entity_translation_upgrade_history'] = array(
'description' => 'The history table for node translations.',
'fields' => array(
'nid' => array(
'description' => 'The node translation nid.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'tnid' => array(
'description' => 'The translation set id for the node translation.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'language' => array(
'description' => 'The node translation language.',
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => '',
),
'complete' => array(
'description' => 'Boolean indicating whether the node migration has completed.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'tnid' => array(
'tnid',
),
'complete' => array(
'complete',
),
),
'primary key' => array(
'nid',
),
);
return $schema;
}