Revisions table breaks with Sequelize 5.
Opened this issue · 1 comments
createthis commented
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
sequelize-paper-trail/lib/index.js
Line 637 in a0f0b6a
- add
freezeTableName: true,
- add
tableName: options.tableName,
createthis commented
@nielsgl ^