You are here

function contemplate_update_2 in Content Templates (Contemplate) 5

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

File

./contemplate.install, line 61

Code

function contemplate_update_2() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql('CREATE TABLE {contemplate_files} (
      site varchar(255) NOT NULL,
      data longblob NOT NULL,
      UNIQUE KEY site (site(255))
      ) /*!40100 DEFAULT CHARACTER SET utf8 */;');
      break;
  }
  return $ret;
}