1 locale.install locale_update_1005()

Convert source and translation from blob to text.

Related topics

File

core/modules/locale/locale.install, line 365
Install, update and uninstall functions for the locale module.

Code

function locale_update_1005() {
  db_drop_index('locales_source', 'source_context');
  db_change_field('locales_source', 'source', 'source', 
  array(
    'type' => 'text',
    'not null' => TRUE,
    'description' => 'The original string in English.',
  ), 
  array('indexes' => array(
    'source_context' => array(array('source', 30), 'context'),
  )
  ));
  db_change_field('locales_target', 'translation', 'translation', 
  array(
    'type' => 'text',
    'not null' => TRUE,
    'description' => 'Translation string value in this language.',
  )
  );
}