You are here

function simplenews_update_2 in Simplenews 6.2

Same name and namespace in other branches
  1. 5 simplenews.install \simplenews_update_2()
  2. 6 simplenews.install \simplenews_update_2()

Rename sn_* tables to simplenews_* to avoid namespace conflicts.

File

./simplenews.install, line 360
Simplenews installation.

Code

function simplenews_update_2() {
  $ret = array();
  db_rename_table($ret, 'sn_snid_tid', 'simplenews_snid_tid');
  db_rename_table($ret, 'sn_newsletters', 'simplenews_newsletters');
  db_rename_table($ret, 'sn_subscriptions', 'simplenews_subscriptions');
  return $ret;
}