You are here

function uc_order_update_9 in Ubercart 5

File

uc_order/uc_order.install, line 405

Code

function uc_order_update_9() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {uc_order_line_items} ADD data text");
      break;
    case 'pgsql':
      db_add_column($ret, 'uc_order_line_items', 'data', 'text');
      break;
  }
  return $ret;
}