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

Revisions table breaks with Sequelize 5. #82

Open
createthis opened this issue Aug 19, 2019 · 1 comment
Open

Revisions table breaks with Sequelize 5. #82

createthis opened this issue Aug 19, 2019 · 1 comment

Comments

@createthis
Copy link
Contributor

createthis commented Aug 19, 2019

This appears to be related to sequelize/sequelize#10717

If the revisionModel is Revisions, sequelize 5 has a bug and lowercases the table name as revisions in queries. This breaks sequelize-paper-trail.

I've found two potential solutions both added on

underscored: options.underscored,

  1. add freezeTableName: true,
  2. add tableName: options.tableName,
createthis added a commit to libertas-funding/sequelize-paper-trail that referenced this issue Aug 19, 2019
@createthis
Copy link
Contributor Author

@nielsgl ^

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

1 participant