You are here

function l10n_update_update_7001 in Localization update 7.2

Same name and namespace in other branches
  1. 7 l10n_update.install \l10n_update_update_7001()

Rename filepath to uri in {l10n_update_file} table.

File

./l10n_update.install, line 444
Install file for l10n remote updates.

Code

function l10n_update_update_7001() {

  // Only do this update if the field exists from D6.
  // If it doesn't, we've got a pure D7 site that doesn't need it.
  if (db_field_exists('l10n_update_file', 'filepath')) {
    db_change_field('l10n_update_file', 'filepath', 'uri', array(
      'description' => 'File system path for importing the file.',
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
      'default' => '',
    ));
  }
}