You are here

function tweet_feed_update_7302 in Tweet Feed 7.3

Change the greographic_coordinates field to a textarea to accommodate larger data.

File

./tweet_feed.install, line 274

Code

function tweet_feed_update_7302() {

  // Manual database changes.
  db_query("UPDATE {field_config} SET type = 'text_long' WHERE field_name = 'field_geographic_coordinates_place'");
  db_change_field('field_data_field_geographic_coordinates', 'field_geographic_coordinates_value', 'field_geographic_coordinates_value', array(
    'type' => 'text',
    'size' => 'big',
  ));
  db_change_field('field_data_field_geographic_coordinates', 'field_geographic_coordinates_value', 'field_geographic_coordinates_value', array(
    'type' => 'text',
    'size' => 'big',
  ));

  // Clear caches.
  field_cache_clear(TRUE);
}