From 93e914922bf06dc78c087404d69e5d4e65a3e43a Mon Sep 17 00:00:00 2001 From: uno/hurtki Date: Thu, 19 Mar 2026 10:16:18 +0200 Subject: [PATCH] fix: sql syntax in 005 banners normalized username migration --- api/internal/migrations/005_username_normalized_banners.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/internal/migrations/005_username_normalized_banners.go b/api/internal/migrations/005_username_normalized_banners.go index d3dd7a2..d55f516 100644 --- a/api/internal/migrations/005_username_normalized_banners.go +++ b/api/internal/migrations/005_username_normalized_banners.go @@ -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);