function contemplate_update_2 in Content Templates (Contemplate) 7
Same name and namespace in other branches
- 5 contemplate.install \contemplate_update_2()
- 6 contemplate.install \contemplate_update_2()
File
- ./
contemplate.install, line 57 - 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;
}