You are here

function xmlsitemap_user_update_2 in XML sitemap 5.2

Implementation of hook_update_N().

File

xmlsitemap_user/xmlsitemap_user.install, line 80
XML sitemap user install file

Code

function xmlsitemap_user_update_2() {
  $ret = array();
  $ret[] = update_sql("ALTER TABLE {xmlsitemap_user} DROP pid");
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {xmlsitemap_user_role} CHANGE priority priority float");
      break;
    case 'pgsql':
      db_change_column($ret, 'xmlsitemap_user_role', 'priority', 'priority', 'real');
      break;
  }
  return $ret;
}