Skip to content

Commit

Permalink
Add new unique index in rhnPackageChangeLogData
Browse files Browse the repository at this point in the history
  • Loading branch information
witekest committed Oct 20, 2023
1 parent 49737d6 commit c5747cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions schema/spacewalk/common/tables/rhnPackageChangeLogData.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ CREATE TABLE rhnPackageChangeLogData

;

CREATE INDEX rhn_pkg_cld_nt_idx
ON rhnPackageChangeLogData (name, time)
CREATE UNIQUE INDEX CONCURRENTLY rhn_pkg_cld_ntt_idx
ON rhnPackageChangeLogData
USING btree(name, digest("text", 'sha512'::text), time)

;

Expand Down

0 comments on commit c5747cc

Please sign in to comment.