You are here

function panels_update_5215 in Panels 6.3

Same name and namespace in other branches
  1. 5.2 panels.install \panels_update_5215()

Increase the size of the data column in the {panels_object_cache} table on MySQL.

Also gets rid of some duplicate indexes resulting the CREATE TABLE queries in the install() of schema 5214

File

./panels.install, line 744

Code

function panels_update_5215() {
  if (!empty($GLOBALS['SKIP_PANELS_UPDATES'])) {
    return array();
  }
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {panels_pane} ADD PRIMARY KEY (pid)");
      break;
    case 'pgsql':
      $ret[] = update_sql("ALTER TABLE {panels_pane} ADD PRIMARY KEY (pid)");
  }
  return $ret;
}