Skip to content

Commit 68578f2

Browse files
authored
Add missing group by (#456)
This may get us past the `pgroll.Init` step in older version of Postgres (<= 13)
1 parent 1650210 commit 68578f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/state/init.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ BEGIN
170170
JOIN pg_am am
171171
ON am.oid = cls.relam
172172
WHERE indrelid = t.oid::regclass
173-
GROUP BY pi.indexrelid, pi.indisunique, am.amname) as ix_details),
173+
GROUP BY pi.indexrelid, pi.indisunique, pi.indpred, am.amname) as ix_details),
174174
'checkConstraints', (SELECT COALESCE(json_object_agg(cc_details.conname, json_build_object(
175175
'name', cc_details.conname,
176176
'columns', cc_details.columns,

0 commit comments

Comments
 (0)