You are here

function uc_taxes_update_7 in Ubercart 5

File

uc_taxes/uc_taxes.install, line 190

Code

function uc_taxes_update_7() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {uc_taxes} ADD COLUMN shippable tinyint UNSIGNED NOT NULL default 0");
      break;
    case 'pgsql':
      db_add_column($ret, 'uc_taxes', 'shippable', 'smallint_unsigned', array(
        'not null' => TRUE,
        'default' => 0,
      ));
      break;
  }
  return $ret;
}