function flashnode_update_2 in Flash Node 5.6
Same name and namespace in other branches
- 5.2 flashnode.install \flashnode_update_2()
- 5.3 flashnode.install \flashnode_update_2()
Build and version no longer used with SWFTools - remove from table Only apply this to MySQL as not all Postgres version support dropping of columns
File
- ./
flashnode.install, line 91
Code
function flashnode_update_2() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql('ALTER TABLE {flashnode} DROP version');
$ret[] = update_sql('ALTER TABLE {flashnode} DROP build');
break;
case 'pgsql':
/*
$ret[] = update_sql('ALTER TABLE {flashnode} DROP COLUMN version');
$ret[] = update_sql('ALTER TABLE {flashnode} DROP COLUMN build');
*/
break;
}
return $ret;
}