034b733f74
Postgres has no built-in MIN() aggregate for UUID type. Cast to text before aggregating, then cast back to uuid. Co-Authored-By: Paperclip <noreply@paperclip.ing>