diff --git a/code/PostgreSQLSchemaManager.php b/code/PostgreSQLSchemaManager.php index cae1473..f941d5d 100644 --- a/code/PostgreSQLSchemaManager.php +++ b/code/PostgreSQLSchemaManager.php @@ -1248,6 +1248,17 @@ class PostgreSQLSchemaManager extends DBSchemaManager { return "decimal(4,0)"; } + + /* + * Return a JSON Binary field type (better for searching than a plain JSON type) + * + * @param array $values Contains a tokenised list of info about this data type + * @return string + */ + public function json($values) + { + return "jsonb"; + } /** * Create a fulltext search datatype for PostgreSQL