You are here

function location_update_6 in Location 5

Same name and namespace in other branches
  1. 5.3 location.install \location_update_6()
  2. 6.3 location.install \location_update_6()
  3. 7.5 location.install \location_update_6()
  4. 7.3 location.install \location_update_6()
  5. 7.4 location.install \location_update_6()

File

./location.install, line 210

Code

function location_update_6() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("UPDATE {location} SET country = 'se' WHERE country = 'sw'");
      break;
    case 'pgsql':
      $ret[] = update_sql("UPDATE {location} SET country = 'se' WHERE country = 'sw'");
      break;
  }
  return $ret;
}