function flag_views_bookmark_update_2 in Flag 5
Same name and namespace in other branches
- 6.2 includes/flag.views_bookmark.inc \flag_views_bookmark_update_2()
- 6 includes/flag.views_bookmark.inc \flag_views_bookmark_update_2()
File
- includes/
flag.views_bookmark.inc, line 277 - flag.view_bookmark.inc
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;
}