You are here

function feedapi_node_update_5 in FeedAPI 5

Fix missing index in the case of postgres database

File

feedapi_node/feedapi_node.install, line 150

Code

function feedapi_node_update_5() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      break;
    case 'pgsql':
      $ret[] = update_sql("CREATE INDEX {feedapi_node_item}_arrived_idx ON {feedapi_node_item} (arrived)");
      break;
  }
  return $ret;
}