You are here

function dynamicload_update_3 in Javascript Tools 5

File

dynamicload/dynamicload.install, line 61

Code

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