You are here

function flashnode_update_2 in Flash Node 5.2

Same name and namespace in other branches
  1. 5.6 flashnode.install \flashnode_update_2()
  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 87

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;
}