You are here

function panels_views_update_5100 in Panels 5.2

Add columns for custom "more" text.

File

panels_views/panels_views.install, line 34

Code

function panels_views_update_5100() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {panels_views} ADD more_text varchar(255) AFTER more_link");
      $ret[] = update_sql("ALTER TABLE {panels_views} ADD allow_more_text integer AFTER allow_more_link");
      break;
    case 'pgsql':
      db_add_column($ret, 'panels_views', 'more_text', 'varchar(255)', array());
      db_add_column($ret, 'panels_views', 'allow_more_text', 'integer', array());
      break;
  }
  return $ret;
}