function context_ui_update_1 in Context 5
Same name and namespace in other branches
- 6 context_ui/context_ui.install \context_ui_update_1()
File
- context_ui/
context_ui.install, line 35
Code
function context_ui_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {context_ui} MODIFY COLUMN space VARCHAR(64) NOT NULL");
$ret[] = update_sql("ALTER TABLE {context_ui} MODIFY COLUMN `key` VARCHAR(64) NOT NULL");
$ret[] = update_sql("ALTER TABLE {context_ui} MODIFY COLUMN value VARCHAR(64) NOT NULL");
break;
}
return $ret;
}