You are here

function flag_views_bookmark_update_2 in Flag 6.2

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

File

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

Code

function flag_views_bookmark_update_2() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("CREATE TABLE if not exists {views_bookmark_node_count} (\n                  vbid int(10) unsigned NOT NULL default '0',\n                  nid int(10) unsigned NOT NULL default '0',\n                  count int(10) unsigned NOT NULL default '0',\n                  PRIMARY KEY (vbid, nid)\n                  ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
      break;
  }
  return $ret;
}