You are here

function feeds_update_6003 in Feeds 6

Same name and namespace in other branches
  1. 7 feeds.install \feeds_update_6003()

Add primary keys to feeds_importer and feeds_source.

File

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

Code

function feeds_update_6003() {
  $ret = array();
  db_drop_index($ret, 'feeds_importer', 'id');
  db_add_primary_key($ret, 'feeds_importer', array(
    'id',
  ));
  db_add_primary_key($ret, 'feeds_source', array(
    'id',
    'feed_nid',
  ));
  return $ret;
}