7.x aggregator.install aggregator_update_7003()

Increase the length of {aggregator_feed}.url.

Related topics

File

modules/aggregator/aggregator.install, line 320
Install, update and uninstall functions for the aggregator module.

Code

function aggregator_update_7003() {
  db_drop_unique_key('aggregator_feed', 'url');
  db_change_field('aggregator_feed', 'url', 'url', array(
    'type' => 'text',
    'not null' => TRUE,
    'description' => 'URL to the feed.',
  ));
  db_change_field('aggregator_feed', 'link', 'link', array(
    'type' => 'text',
    'not null' => TRUE,
    'description' => 'The parent website of the feed; comes from the <link> element in the feed.',
  ));
  db_change_field('aggregator_item', 'link', 'link', array(
    'type' => 'text',
    'not null' => TRUE,
    'description' => 'Link to the feed item.',
  ));
  db_change_field('aggregator_item', 'guid', 'guid', array(
    'type' => 'text',
    'not null' => TRUE,
    'description' => 'Unique identifier for the feed item.',
  ));
  db_add_index('aggregator_feed', 'url', array(
    array(
      'url',
      255,
    ),
  ));
}