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

Error when the DB schema is modified. #3

Open
mubashirhanif opened this issue Apr 21, 2017 · 2 comments
Open

Error when the DB schema is modified. #3

mubashirhanif opened this issue Apr 21, 2017 · 2 comments

Comments

@mubashirhanif
Copy link

This works with one version of the database and if we migrate the database to a newer version and modify the tables a bit. This causes error.

One scenario is adding an extra field to a relation and after migration this plugin causes errors.

@wilzbach
Copy link
Member

@mubashirhanif I am happy to guide you through a PR and I just send out an invitation to the Bonaval organization.

@ddolcimascolo
Copy link
Collaborator

Hi @mubashirhanif,

When you migrate your database, you MUST migrate the history tables too.
We're using this plugin in a large scale application where we migrate the database manually using Sequelize QueryInterface. Whenever a Temporal model is migrated, we write two migration scritps:

  • One for the actual table
  • One for the history table

Can you confirm this is your issue ?

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