nielsgl/sequelize-paper-trail

Revisions table breaks with Sequelize 5.

Opened this issue · 1 comments

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,