Skip to content

Commit 65a6a2f

Browse files
authored
Merge pull request #45 from kitloong/feature/pgsql13
Replace consrc with pg_get_constraintdef()
2 parents 34c9615 + dbcd883 commit 65a6a2f

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)