You are here

function uc_taxes_update_3 in Ubercart 5

File

uc_taxes/uc_taxes.install, line 83

Code

function uc_taxes_update_3() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {uc_taxes} ADD COLUMN conditions text NOT NULL");
      break;
    case 'pgsql':
      db_add_column($ret, 'uc_taxes', 'conditions', 'text', array(
        'not null' => true,
        'default' => "''",
      ));
      break;
  }
  return $ret;
}