Skip to content

Loading…

DBAL-553: PostgreSQL JSON Type #1762

Closed
doctrinebot opened this Issue · 7 comments

2 participants

@doctrinebot

Jira issue originally created by user bountin:

Since version 9.2 PostgreSQL has a new data type for JSON fields: http://www.postgresql.org/docs/9.2/static/datatype-json.html

The current json_array datatype works on this field if it was not created by Doctrine but manually but it would be nice to support the field type also for schema generation.

I can offer a Pull Request for this change but I have not found a method for determining the database version.

@doctrinebot

Comment created by dlondero:

It would be great to have JSON datatype! In the mean time the solution is creating a "Custom Mapping Type", right?

@doctrinebot

Comment created by @deeky666:

[~beberlei] We could adopt the GuidType implementation here with checking on the platform if it supports native json type and use that instead. What do you think?

@doctrinebot

Comment created by @deeky666:

Patch supplied in PR: #469

@doctrinebot

Comment created by @doctrinebot:

A related Github Pull-Request [GH-469] was closed:
#469

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot

Comment created by benedikt.allendorf:

It seems that this feature is already in the documentation (http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html#mapping-matrix) although it is only included in the next version of DBAL (2.5).

@deeky666 deeky666 was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.5 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.