You are here

function flashnode_update_6 in Flash Node 5.3

Same name and namespace in other branches
  1. 5.6 flashnode.install \flashnode_update_6()
  2. 5.2 flashnode.install \flashnode_update_6()

Add substitution column as flashnode 5.2 makes this user-definable on a per node basis

File

./flashnode.install, line 168

Code

function flashnode_update_6() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {flashnode} ADD substitution longtext NOT NULL");
      break;
    case 'pgsql':
      db_add_column($ret, 'flashnode', 'substitution', 'text', array(
        'default' => '',
        'not null' => TRUE,
      ));
      break;
  }
  return $ret;
}