You are here

function dynamicload_update_4 in Javascript Tools 5

File

dynamicload/dynamicload.install, line 76

Code

function dynamicload_update_4() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {dynamicload_blocks} ADD scroll int NOT NULL default '0'");
      break;
    case 'pgsql':
      db_add_column($ret, 'dynamicload_blocks', 'scroll', 'int', array(
        'not null' => TRUE,
        'default' => 0,
      ));
      break;
  }
  return $ret;
}