You are here

function panels_update_5214 in Panels 6.3

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

Create a new table for object caching. This isn't part of the cache system.

File

./panels.install, line 711

Code

function panels_update_5214() {
  if (!empty($GLOBALS['SKIP_PANELS_UPDATES'])) {
    return array();
  }
  $ret = array();
  return $ret;
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql(<<<EOT
        CREATE TABLE {panels_object_cache} (
          sid varchar(64),
          did integer,
          obj varchar(255),
          timestamp integer,
          data text,
          KEY (sid, obj, did),
          KEY (timestamp)
        ) /*!40100 DEFAULT CHARACTER SET utf8 */
EOT
);
    case 'pgsql':
  }
  return !empty($ret) ? $ret : $ret;
}