You are here

function date_api_update_6006 in Date 6.2

Rename the date_format_dfid_seq to date_formats_dfid_seq, as this was missed in 6004 and causes inserts via the UI to fail on PostgreSQL.

File

./date_api.install, line 500

Code

function date_api_update_6006() {
  global $db_type;
  $ret = array();
  if ($db_type == 'pgsql' && db_table_exists('date_format_dfid_seq')) {
    $sql = "ALTER TABLE {date_format}_dfid_seq RENAME TO {date_formats}_dfid_seq";
    $ret[] = update_sql($sql);
  }
  return $ret;
}