function node_update_8002

Rename node.language field to node.langcode.

Related topics

File

drupal/core/modules/node/node.install, line 594
Install, update and uninstall functions for the node module.

Code

function node_update_8002() {
  $spec = array(
    'description' => 'The {language}.langcode of this node.',
    'type' => 'varchar',
    'length' => 12,
    'not null' => TRUE,
    'default' => '',
  );
  db_change_field('node', 'language', 'langcode', $spec);
}