You are here

function uc_order_update_4 in Ubercart 5

File

uc_order/uc_order.install, line 334

Code

function uc_order_update_4() {
  $ret = array();

  // Because I forgot to change the CREATE statement...
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {uc_order_comments} CHANGE order_status order_status VARCHAR(32) NOT NULL");
      break;
    case 'pgsql':
      db_change_column($ret, 'uc_order_comments', 'order_status', 'order_status', 'varchar(32)', array(
        'not null' => true,
        'default' => "''",
      ));
      break;
  }
  return $ret;
}