You are here

function panels_mini_update_5003 in Panels 5.2

Add the 'category' field, which allows panels administrators to assign mini panels to custom categories.

File

panels_mini/panels_mini.install, line 166

Code

function panels_mini_update_5003() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
      db_add_column($ret, 'panels_mini', 'category', 'varchar(64)', array());
      break;
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {panels_mini} ADD COLUMN category varchar(64) AFTER name");
  }
  return $ret;
}