You are here

function context_ui_update_2 in Context 5

File

context_ui/context_ui.install, line 48

Code

function context_ui_update_2() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {context_ui} CHANGE COLUMN space namespace VARCHAR(64) NOT NULL");
      $ret[] = update_sql("ALTER TABLE {context_ui} CHANGE COLUMN `key` attribute VARCHAR(64) NOT NULL");
      break;
  }
  return $ret;
}