You are here

function countries_api_update_6000 in Country codes API 6

Implementation of hook_update_N().

File

./countries_api.install, line 74
Install file for Countries API.

Code

function countries_api_update_6000() {
  $ret = array();
  db_change_field($ret, 'countries_api_countries', 'iso2', 'iso2', array(
    'type' => 'char',
    'length' => 2,
    'not null' => TRUE,
    'description' => 'ISO 3166-1 alpha 2 country code',
  ));
  db_change_field($ret, 'countries_api_countries', 'iso3', 'iso3', array(
    'type' => 'char',
    'length' => 3,
    'not null' => TRUE,
    'description' => 'ISO 3166-1 alpha 3 country code',
  ));
  return $ret;
}