function flag_views_bookmark_update_5 in Flag 5
Same name and namespace in other branches
- 6.2 includes/flag.views_bookmark.inc \flag_views_bookmark_update_5()
- 6 includes/flag.views_bookmark.inc \flag_views_bookmark_update_5()
File
- includes/
flag.views_bookmark.inc, line 321 - flag.view_bookmark.inc
Code
function flag_views_bookmark_update_5() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$timestamp = time();
$ret[] = update_sql("ALTER TABLE {views_bookmark_nodes} ADD timestamp int(11) unsigned NOT NULL default '0'");
$ret[] = update_sql("UPDATE {views_bookmark_nodes} SET timestamp = {$timestamp} WHERE timestamp = 0");
break;
}
return $ret;
}