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