Skip to content

Commit

Permalink
Use sha512 hashing
Browse files Browse the repository at this point in the history
Use sha512 hashing to minimize collision risk
  • Loading branch information
witekest committed Oct 11, 2023
1 parent 754a19c commit d0bce1d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ drop function remove_duplicate_changelogdata();

drop index if exists rhn_pkg_cld_nt_idx;

create extension pgcrypto;
create extension if not exists pgcrypto;
create unique index concurrently rhn_pkg_cld_ntt_idx
on "rhnpackagechangelogdata"
using btree(name, digest("text", 'md5'::text), "time");
using btree(name, digest("text", 'sha512'::text), "time");

0 comments on commit d0bce1d

Please sign in to comment.