You are here

function apachesolr_attachments_update_7004 in Apache Solr Attachments 7

Change apachesolr_index_entities_file.body field to longblob.

Bypass PDOexception "Incorrect string value" and lost of the information that is stored as UTF-8 4 bytes character(s) in MySQL.

See also

https://drupal.org/node/1853836

https://drupal.org/node/2014889

File

./apachesolr_attachments.install, line 274
Install, update and uninstall functions for the apachesolr_attachments module.

Code

function apachesolr_attachments_update_7004() {
  $schema = apachesolr_attachments_schema();
  $field = $schema['apachesolr_index_entities_file']['fields']['body'];
  db_change_field('apachesolr_index_entities_file', 'body', 'body', $field);
}