function system_update_6024 in Drupal 6
Add translation fields to nodes used by translation module.
Related topics
File
- modules/
system/ system.install, line 2064
Code
function system_update_6024() {
$ret = array();
db_add_field($ret, 'node', 'tnid', array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
));
db_add_field($ret, 'node', 'translate', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
db_add_index($ret, 'node', 'tnid', array(
'tnid',
));
db_add_index($ret, 'node', 'translate', array(
'translate',
));
return $ret;
}