diff --git a/EF6.PG/EF6.PG.csproj b/EF6.PG/EF6.PG.csproj
index 87cf8ba..32b958d 100644
--- a/EF6.PG/EF6.PG.csproj
+++ b/EF6.PG/EF6.PG.csproj
@@ -5,7 +5,7 @@
Copyright 2019 © The Npgsql Development Team
Npgsql
npgsql postgresql postgres data database entity framework ef orm
- 6.3.0
+ 6.3.1
latest
net45;netstandard21
true
diff --git a/EF6.PG/Resources/NpgsqlSchema.ssdl b/EF6.PG/Resources/NpgsqlSchema.ssdl
index 50df816..627ce10 100644
--- a/EF6.PG/Resources/NpgsqlSchema.ssdl
+++ b/EF6.PG/Resources/NpgsqlSchema.ssdl
@@ -57,7 +57,7 @@
end as is_identity,
false as is_generated,
-- default value column
- ad.adsrc as default_value
+ pg_get_expr(ad.adbin, ad.adrelid) as default_value
from pg_attribute a
join pg_class c
on a.attrelid = c.oid
@@ -178,7 +178,7 @@
end as is_identity,
false as is_generated,
-- default value column
- ad.adsrc as default_value
+ pg_get_expr(ad.adbin, ad.adrelid) as default_value
from pg_attribute a
join pg_class c
on a.attrelid = c.oid
diff --git a/EF6.PG/Resources/NpgsqlSchemaV3.ssdl b/EF6.PG/Resources/NpgsqlSchemaV3.ssdl
index dd04ebd..4e84667 100644
--- a/EF6.PG/Resources/NpgsqlSchemaV3.ssdl
+++ b/EF6.PG/Resources/NpgsqlSchemaV3.ssdl
@@ -57,7 +57,7 @@
end as is_identity,
false as is_generated,
-- default value column
- ad.adsrc as default_value
+ pg_get_expr(ad.adbin, ad.adrelid) as default_value
from pg_attribute a
join pg_class c
on a.attrelid = c.oid
@@ -178,7 +178,7 @@
end as is_identity,
false as is_generated,
-- default value column
- ad.adsrc as default_value
+ pg_get_expr(ad.adbin, ad.adrelid) as default_value
from pg_attribute a
join pg_class c
on a.attrelid = c.oid