You are here

function location_update_6 in Location 7.4

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

Legacy update 6. Use correct country code for Sweeden.

File

./location.install, line 496
Installation / uninstallation routines.

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;
}