Commit 59582a81 authored by Andrew Godwin's avatar Andrew Godwin
Browse files

Enforce ordering on PostgreSQL get_constraints cols (refs #21134)

parent d5606b57
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -137,6 +137,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
            WHERE
                kc.table_schema = %s AND
                kc.table_name = %s
            ORDER BY kc.ordinal_position ASC
        """, ["public", table_name])
        for constraint, column, kind, used_cols in cursor.fetchall():
            # If we're the first column, make the record