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

JSON field does not work anymore in MySQL 5.7+ #91

Open
ksfreitas opened this issue Nov 21, 2019 · 4 comments
Open

JSON field does not work anymore in MySQL 5.7+ #91

ksfreitas opened this issue Nov 21, 2019 · 4 comments

Comments

@ksfreitas
Copy link
Contributor

JSON field was changed to JSONB (I think its a Postgres specific field). In past versions of paper-trail, the JSON field it worked fine with MySQL 5.7+ versions.

I'm working in a patch to keep paper trail working both with Pg/MySQL native JSON fields.

@EdByrnee
Copy link

EdByrnee commented Nov 26, 2019

Hi, I'm using mysql 5.6 and it is not recognizing json fields - is mysql 5.7+ a dependency of this package?

@ksfreitas
Copy link
Contributor Author

Hi, I'm using mysql 5.6 and it is not recognizing json fields - is mysql 5.7+ a dependency of this package?

No, you can configure using the option documentFieldType as legacy. Look my fork: https://github.com/ksfreitas/sequelize-paper-trail

@ksfreitas
Copy link
Contributor Author

Hi, I'm using mysql 5.6 and it is not recognizing json fields - is mysql 5.7+ a dependency of this package?

Currently you can work with any MySQL using the undocumented param mysql as true.

@garma83
Copy link

garma83 commented Jul 10, 2021

would be nice to document the mysql parameter.

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

No branches or pull requests

3 participants