You are here

function uc_reports_update_6000 in Ubercart 6.2

Drop the nasty pgsql-specific functions added for no discernible reason whatsoever!

File

uc_reports/uc_reports.install, line 19
Install hooks for uc_reports.module.

Code

function uc_reports_update_6000() {
  $ret = array();
  if ($GLOBALS['db_type'] == 'pgsql') {
    $ret[] = update_sql("DROP FUNCTION from_unixtime(integer);");
    $ret[] = update_sql("DROP FUNCTION unix_timestamp();");
    $ret[] = update_sql("DROP FUNCTION unix_timestamp(timestamp with time zone);");
  }
  else {
    $ret[] = array(
      'success' => TRUE,
      'query' => 'Not using pgsql, skipping this update.',
    );
  }
  return $ret;
}