You are here

function contemplate_update_1 in Content Templates (Contemplate) 5

Same name and namespace in other branches
  1. 6 contemplate.install \contemplate_update_1()
  2. 7 contemplate.install \contemplate_update_1()

File

./contemplate.install, line 46

Code

function contemplate_update_1() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql('ALTER TABLE {contemplate} ADD rss text NOT NULL');
      $ret[] = update_sql('ALTER TABLE {contemplate} ADD enclosure varchar(128) NOT NULL');
      $ret[] = update_sql("ALTER TABLE {contemplate} ADD flags int(8) unsigned NOT NULL default '7'");
      break;
  }
  return $ret;
}