You are here

function contemplate_update_2 in Content Templates (Contemplate) 6

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

File

./contemplate.install, line 58
Content template module install/schema hooks.

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;
}