summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Treat2015-02-01 19:31:07 +0000
committerRobert Treat2017-10-30 22:31:50 +0000
commit2159b5f1686b2640c3d65dea288236f250276780 (patch)
tree17a3879372f7cb9f3db5502d9321b3edfe330f9b
parent22f4d12f21727bccc00cabc3008bba44ba5032a7 (diff)
Make json and jsonb data types display as textarea rather than 1 line input fields. Inspired by patch from Felipe Figueroa <amenadiel@gmail.com>
-rwxr-xr-xclasses/database/Postgres.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php
index 310f49c7..b31bc036 100755
--- a/classes/database/Postgres.php
+++ b/classes/database/Postgres.php
@@ -275,6 +275,8 @@ class Postgres extends ADODB_base {
}
case 'text':
case 'text[]':
+ case 'json':
+ case 'jsonb':
case 'xml':
case 'xml[]':
$n = substr_count($value, "\n");