function aggregator_update_8001

Adds the langcode field to {aggregator_item} and {aggregator_feed}.

File

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

Code

function aggregator_update_8001() {

  // Add the field.
  db_add_field('aggregator_feed', 'langcode', array(
    'description' => 'The {language}.langcode of this feed.',
    'type' => 'varchar',
    'length' => 12,
    'not null' => TRUE,
    'default' => '',
    'initial' => Language::LANGCODE_DEFAULT,
  ));
  db_add_field('aggregator_item', 'langcode', array(
    'description' => 'The {language}.langcode of this feed item.',
    'type' => 'varchar',
    'length' => 12,
    'not null' => TRUE,
    'default' => '',
    'initial' => Language::LANGCODE_DEFAULT,
  ));
}