You are here

function panels_update_5214 in Panels 5.2

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

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

File

./panels.install, line 481

Code

function panels_update_5214() {
  $ret = array();
  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;
}