You are here

function flag_views_bookmark_update_6 in Flag 5

Same name and namespace in other branches
  1. 6.2 includes/flag.views_bookmark.inc \flag_views_bookmark_update_6()
  2. 6 includes/flag.views_bookmark.inc \flag_views_bookmark_update_6()

Add columns for configurable messages.

File

includes/flag.views_bookmark.inc, line 337
flag.view_bookmark.inc

Code

function flag_views_bookmark_update_6() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {views_bookmarks} ADD mark_message varchar(255) default '' AFTER mark_long");
      $ret[] = update_sql("ALTER TABLE {views_bookmarks} ADD unmark_message varchar(255) default '' AFTER unmark_long");
      break;
  }
  return $ret;
}