We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40705e2 commit fbb0bbaCopy full SHA for fbb0bba
src/lib/PostgresMetaColumns.ts
@@ -343,6 +343,7 @@ BEGIN
343
AND cardinality(conkey) = 1
344
AND conrelid = ${literal(old!.table_id)}
345
AND conkey[1] = ${literal(old!.ordinal_position)}
346
+ ORDER BY oid asc
347
LIMIT 1;
348
349
IF v_conname IS NOT NULL THEN
src/lib/sql/columns.sql
@@ -93,6 +93,7 @@ FROM
93
) AS "definition"
94
FROM pg_constraint
95
WHERE contype = 'c' AND cardinality(conkey) = 1
96
97
) AS check_constraints ON check_constraints.table_id = c.oid AND check_constraints.ordinal_position = a.attnum
98
WHERE
99
NOT pg_is_other_temp_schema(nc.oid)
0 commit comments