You are here

function ad_update_2 in Advertisement 5

Same name and namespace in other branches
  1. 5.2 ad.install \ad_update_2()

Ad notifications are being moved to an external module, so remove all references from the core module.

File

./ad.install, line 298

Code

function ad_update_2() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    default:
      $ret[] = update_sql("DROP TABLE {ad_notifications}");
      $ret[] = update_sql("ALTER TABLE {ads} DROP expire_notified");
      $ret[] = update_sql("ALTER TABLE {ads} DROP renew_notified");
  }
  return $ret;
}