Skip to content

Commit dbcd883

Browse files
committed
#44 Replace consrc with pg_get_constraintdef()
1 parent 34c9615 commit dbcd883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KitLoong/MigrationsGenerator/Repositories/PgSQLRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function getCheckConstraintDefinition(string $table, string $column): ?st
4949
ccu.table_schema AS table_schema,
5050
ccu.table_name,
5151
ccu.column_name,
52-
pgc.consrc AS definition
52+
pg_get_constraintdef(pgc.oid) AS definition
5353
FROM pg_constraint pgc
5454
JOIN pg_namespace nsp ON nsp.oid = pgc.connamespace
5555
JOIN pg_class cls ON pgc.conrelid = cls.oid

0 commit comments

Comments
 (0)