From 265a33f3cfee6aea416f0ed344c28e19de7788fc Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sun, 7 Oct 2018 18:15:33 +0300 Subject: [PATCH] json for pg --- src/Driver/Postgres/Schema/PostgresColumn.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Driver/Postgres/Schema/PostgresColumn.php b/src/Driver/Postgres/Schema/PostgresColumn.php index c82fe169..a2d25350 100644 --- a/src/Driver/Postgres/Schema/PostgresColumn.php +++ b/src/Driver/Postgres/Schema/PostgresColumn.php @@ -78,7 +78,7 @@ class PostgresColumn extends AbstractColumn 'longBinary' => 'bytea', //Additional types - 'json' => 'text', + 'json' => 'json', ]; /** @@ -101,7 +101,7 @@ class PostgresColumn extends AbstractColumn 'time' => ['time', 'time with time zone', 'time without time zone'], 'timestamp' => ['timestamp', 'timestamp with time zone', 'timestamp without time zone'], 'binary' => ['bytea'], - 'json' => ['text'], + 'json' => ['json'], ]; /**