function flag_views_bookmark_update_6 in Flag 6.2
Same name and namespace in other branches
- 5 includes/flag.views_bookmark.inc \flag_views_bookmark_update_6()
- 6 includes/flag.views_bookmark.inc \flag_views_bookmark_update_6()
Add columns for configurable messages.
File
- includes/
flag.views_bookmark.inc, line 253 - Upgrade code to migrate from Views bookmark to Flag module.
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;
}