You are here

function feeds_update_7204 in Feeds 8.2

Same name and namespace in other branches
  1. 7.2 feeds.install \feeds_update_7204()

Add index for looking up by entity_type + url/ guid to feeds_item table.

File

./feeds.install, line 546
Schema definitions install/update/uninstall hooks.

Code

function feeds_update_7204() {
  db_add_index('feeds_item', 'global_lookup_url', array(
    'entity_type',
    array(
      'url',
      128,
    ),
  ));
  db_add_index('feeds_item', 'global_lookup_guid', array(
    'entity_type',
    array(
      'guid',
      128,
    ),
  ));
}