You are here

function flag_views_bookmark_update_4 in Flag 6.2

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

File

includes/flag.views_bookmark.inc, line 223
Upgrade code to migrate from Views bookmark to Flag module.

Code

function flag_views_bookmark_update_4() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {views_bookmarks} ADD show_on_form int(1) unsigned NOT NULL default '0'");
      break;
  }
  return $ret;
}