Skip to content

Conversation

kurisutofu
Copy link

  • Upgraded to latest version for lodash, mocha, sequelize, sqlite3
  • Added possibility to specify suffix for historical tables instead of static "Histories"
  • Added possibility to have associations to the origin models

znarf and others added 30 commits March 25, 2019 09:59
Added the 'modelSuffix' option to enable custom name to be appended to Model and Table
Remove wrong explanation
Remove wrong text again.
Added modelSuffix to ts file
Implementation of Association but not yet working.
+ All tests passing
+ Updated Lodash
+ Updated Mocha
+ Reverted to BeforeInsert instead of BeforeBulkInsert
+ Updated logic to sync with historical
+ Added origin model as a property of the historical model
+ Updated the association copied from the original model to not cascade the update/delete actions.
Association onDelete/onUpdate actions
+ Removed associations from historical model to avoid error if table in different DB
Added the ability
Added the ability to disable transaction on history tables (in case used in a separate DB)
@ddolcimascolo
Copy link
Collaborator

Hey @kurisutofu

Thx for the contribution, I've managed to update the dependencies in another PR. Do you mind splitting your features in individual, new PR?

Regards,
David

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

Successfully merging this pull request may close these issues.

3 participants