You are here

function i18n_update_2 in Internationalization 5.2

Same name and namespace in other branches
  1. 5.3 i18n.install \i18n_update_2()
  2. 5 i18n.install \i18n_update_2()

File

./i18n.install, line 91

Code

function i18n_update_2() {
  $items = array();
  $items[] = update_sql("ALTER TABLE {term_data} ADD trid int(10) unsigned NOT NULL default '0'");
  $items[] = update_sql("UPDATE {term_data} t INNER JOIN {i18n_taxonomy_term} i ON i.tid = t.tid SET t.trid = i.trid");
  return $items;
}