Skip to content

Commit

Permalink
Merge pull request #45 from kitloong/feature/pgsql13
Browse files Browse the repository at this point in the history
Replace consrc with pg_get_constraintdef()
  • Loading branch information
kitloong authored Aug 31, 2021
2 parents 34c9615 + dbcd883 commit 65a6a2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getCheckConstraintDefinition(string $table, string $column): ?st
ccu.table_schema AS table_schema,
ccu.table_name,
ccu.column_name,
pgc.consrc AS definition
pg_get_constraintdef(pgc.oid) AS definition
FROM pg_constraint pgc
JOIN pg_namespace nsp ON nsp.oid = pgc.connamespace
JOIN pg_class cls ON pgc.conrelid = cls.oid
Expand Down

0 comments on commit 65a6a2f

Please sign in to comment.