You are here

function ad_image_update_1 in Advertisement 5

Same name and namespace in other branches
  1. 5.2 image/ad_image.install \ad_image_update_1()

Ad tooltip support to images.

File

image/ad_image.install, line 96

Code

function ad_image_update_1() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
      $ret[] = update_sql("ALTER TABLE {ad_image} ADD tooltip VARCHAR(255) NOT NULL DEFAULT ''");
      break;
    default:
      $ret[] = update_sql("ALTER TABLE {ad_image} ADD tooltip VARCHAR(255) NOT NULL DEFAULT '' AFTER url");
  }
  return $ret;
}