Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Postgres JSONB data type #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Use Postgres JSONB data type #5

wants to merge 4 commits into from

Conversation

ianp
Copy link

@ianp ianp commented Nov 14, 2016

Modern versions of Postgres support JSON data natively.

I've put this behind a config option though, to preserve compatibility for existing users (also, the only change is in the initial table creation anyway).

A more comprehensive solution would be to query the DB version (e.g. SHOW server_version;) and then create tables and indices with the appropriate type, but that may be over-engineering things 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant