function flashnode_update_7 in Flash Node 5.2
Same name and namespace in other branches
- 5.6 flashnode.install \flashnode_update_7()
- 5.3 flashnode.install \flashnode_update_7()
Add flashvars and base columns as flashnode 5.2 makes these user-definable on a per node basis
File
- ./
flashnode.install, line 185
Code
function flashnode_update_7() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {flashnode} ADD flashvars longtext NOT NULL");
$ret[] = update_sql("ALTER TABLE {flashnode} ADD base VARCHAR(255) NOT NULL");
break;
case 'pgsql':
db_add_column($ret, 'flashnode', 'flashvars', 'text', array(
'default' => '',
'not null' => TRUE,
));
db_add_column($ret, 'flashnode', 'base', 'varchar(255)', array(
'default' => '',
'not null' => TRUE,
));
break;
}
return $ret;
}