You are here

function getlocations_fields_update_7202 in Get Locations 7.2

Add data field.

File

modules/getlocations_fields/getlocations_fields.install, line 224
getlocations_fields.install @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_fields_update_7202() {
  if ($result = db_field_exists('getlocations_fields', 'data')) {
    return;
  }
  $spec = array(
    'description' => 'Data.',
    'type' => 'text',
    'size' => 'medium',
    'not null' => TRUE,
    'initial' => '',
  );
  db_add_field('getlocations_fields', 'data', $spec);
}