You are here

function smart_ip_update_7000 in Smart IP 7

Same name and namespace in other branches
  1. 7.2 smart_ip.install \smart_ip_update_7000()

Rename 'country' field to 'country_code'.

File

./smart_ip.install, line 156
Installation callback for Smart IP.

Code

function smart_ip_update_7000() {
  $spec = array(
    'description' => 'ISO 3166 2-Character Country Code',
    'type' => 'char',
    'length' => 3,
    'not null' => TRUE,
  );
  db_change_field('smart_ip', 'country', 'country_code', $spec);
}