You are here

function rotor_update_5000 in Rotor Banner 5

Implementation of hook_update_N().

File

./rotor.install, line 50
Provides install and uninstall functions for rotor.

Code

function rotor_update_5000() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {rotor_item} ADD COLUMN url varchar(255) NULL AFTER file_path");
      $ret[] = update_sql("ALTER TABLE {rotor_item} ADD COLUMN alt_text varchar(255) NULL AFTER file_path");
      break;
  }
  return $ret;
}