You are here

function feedapi_update_7 in FeedAPI 5

File

./feedapi.install, line 247

Code

function feedapi_update_7() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      break;
    case 'pgsql':
      $ret[] = update_sql("DROP INDEX type_index");
      $ret[] = update_sql("DROP INDEX timestamp_index");
      $ret[] = update_sql("DROP INDEX time_index");
      $ret[] = update_sql("DROP INDEX id_index");
      $ret[] = update_sql("CREATE INDEX {feedapi_stat}_id_type_timestamp_time_idx ON {feedapi_stat} (id, type, timestamp, time)");
      break;
  }
  return $ret;
}