You are here

function tft_update_7200 in Taxonomy File Tree 7.2

Implements hook_update_N for updating to the 2.x branch.

File

./tft.install, line 155
Module install logic.

Code

function tft_update_7200(&$sandbox) {

  // The 1.x branch (be it D6 or D7) had 3 tables. 2 of them are now part of sub-modules. Rename
  // the tables, so they don't conflict. The submodules, when installed for the first time, will
  // copy the content of these tables over to their own table.
  db_rename_table('tft_tid_og_nid', 'tft_tid_og_nid_d6');
  db_rename_table('tft_archive_restore', 'tft_archive_restore_d6');
  return t("Suffix 'tft_tid_og_nid' and 'tft_archive_restore' tables with '_d6'. They are not part of TFT core anymore, but of 2 submodules. When one of the submodules will be enabled, they will copy the content from these tables to their own.");
}