You are here

function xmlsitemap_update_6133 in XML sitemap 6

Implementation of hook_update_N().

File

./xmlsitemap.install, line 446
Installation file for XML sitemap.

Code

function xmlsitemap_update_6133() {
  if ($GLOBALS['db_type'] == 'pgsql') {
    $ret[] = update_sql('DROP FUNCTION IF EXISTS first(anyelement, anyelement);');
    $result = @update_sql("DROP AGGREGATE first(anyelement)");
    if ($result['success']) {
      $ret[] = $result;
    }
  }
  $ret[] = update_sql("UPDATE {system} SET weight = 5 WHERE name = 'xmlsitemap'");
  return $ret;
}