1 node.install node_update_1002()

Rename node.language field to node.langcode.

Related topics

File

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

Code

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