You are here

function uc_order_update_8 in Ubercart 5

File

uc_order/uc_order.install, line 388

Code

function uc_order_update_8() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {uc_orders} ADD host VARCHAR(16) NOT NULL DEFAULT ''");
      break;
    case 'pgsql':
      db_add_column($ret, 'uc_orders', 'host', 'VARCHAR(16)', array(
        'not null' => TRUE,
        'default' => "''",
      ));
      break;
  }
  return $ret;
}