Skip to content

Commit

Permalink
Add missing group by (#456)
Browse files Browse the repository at this point in the history
This may get us past the `pgroll.Init` step in older version of Postgres
(<= 13)
  • Loading branch information
ryanslade authored Nov 8, 2024
1 parent 1650210 commit 68578f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/state/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ BEGIN
JOIN pg_am am
ON am.oid = cls.relam
WHERE indrelid = t.oid::regclass
GROUP BY pi.indexrelid, pi.indisunique, am.amname) as ix_details),
GROUP BY pi.indexrelid, pi.indisunique, pi.indpred, am.amname) as ix_details),
'checkConstraints', (SELECT COALESCE(json_object_agg(cc_details.conname, json_build_object(
'name', cc_details.conname,
'columns', cc_details.columns,
Expand Down

0 comments on commit 68578f2

Please sign in to comment.