Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/internal/migrations/005_username_normalized_banners.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ using banners b
-- same lowered ( normalized username )
where a.github_username_normalized = b.github_username_normalized
-- same banner type
and a.banner_type = b.banner_type;
and a.banner_type = b.banner_type
-- their ctids are different ( different rows )
and a.ctid > b.ctid
and a.ctid > b.ctid;

alter table banners
add constraint banners_github_username_normalized_banner_type_key unique (github_username_normalized, banner_type);
Expand Down
Loading