Skip to content

Commit

Permalink
Add extra index on identifier for deleted media tables
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc committed Jan 9, 2024
1 parent db3d0ee commit d70a4c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/upstream_db/0003_openledger_image_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ ALTER TABLE public.deleted_image OWNER TO deploy;
CREATE UNIQUE INDEX deleted_image_provider_fid_idx
ON public.deleted_image
USING btree (provider, md5(foreign_identifier));
CREATE UNIQUE INDEX deleted_image_identifier_key
ON public.deleted_image
USING btree (identifier);
3 changes: 3 additions & 0 deletions docker/upstream_db/0006_openledger_audio_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ ALTER TABLE public.deleted_audio OWNER TO deploy;
CREATE UNIQUE INDEX deleted_audio_provider_fid_idx
ON public.deleted_audio
USING btree (provider, md5(foreign_identifier));
CREATE UNIQUE INDEX deleted_audio_identifier_key
ON public.deleted_audio
USING btree (identifier);

0 comments on commit d70a4c8

Please sign in to comment.