Skip to content

Commit 639d086

Browse files
committed
Stop using pg_constraint.consrc, obsoleted in PG12
Use pg_get_expr() on conbin instead Fixes #143
1 parent 7547263 commit 639d086

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

EF6.PG/Resources/NpgsqlSchema.ssdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
c.condeferrable as is_deferrable,
7979
c.condeferred as is_initially_deferred,
8080
c.contype as constraint_type,
81-
c.consrc as expression,
81+
pg_get_expr(c.conbin, c.conrelid) as expression,
8282
case c.confupdtype
8383
when 'c' then 'CASCADE'
8484
when 'n' then 'SET NULL'

EF6.PG/Resources/NpgsqlSchemaV3.ssdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
c.condeferrable as is_deferrable,
7979
c.condeferred as is_initially_deferred,
8080
c.contype as constraint_type,
81-
c.consrc as expression,
81+
pg_get_expr(c.conbin, c.conrelid) as expression,
8282
case c.confupdtype
8383
when 'c' then 'CASCADE'
8484
when 'n' then 'SET NULL'

0 commit comments

Comments
 (0)