You are here

function regions_api_update_6000 in Country codes API 6

Implementation of hook_update_N().

File

contrib/regions_api/regions_api.install, line 67
Install file for Regions API.

Code

function regions_api_update_6000() {
  $ret = array();
  db_change_field($ret, 'regions_api_regions', 'rid', 'rid', array(
    'type' => 'serial',
    'not null' => TRUE,
    'description' => 'Primary Key: Unique region ID.',
  ));
  db_change_field($ret, 'regions_api_regions', 'iso2', 'iso2', array(
    'type' => 'char',
    'length' => 2,
    'not null' => TRUE,
    'description' => 'ISO 3166 alpha-2 country code.',
  ));
  return $ret;
}