Skip to content

🐛 Added logic to avoid updating the updated_at field when migrating#9814

Merged
kirrg001 merged 2 commits into
TryGhost:masterfrom
kirrg001:fix-updated-at-scripts
Aug 22, 2018
Merged

🐛 Added logic to avoid updating the updated_at field when migrating#9814
kirrg001 merged 2 commits into
TryGhost:masterfrom
kirrg001:fix-updated-at-scripts

Conversation

@kirrg001
Copy link
Copy Markdown
Contributor

@kirrg001 kirrg001 commented Aug 22, 2018

no issue

  • we have to explicitly reset the updated_at field, because Bookshelf auto-updates this field on each update

  • detect and respect options.migrating

  • ensure updated_at is set when updating a post in the client

  • ensure updated_by is set when updating a post in the client

  • ensure updated_at doesn't get updated when migrating

  • ensure updated_by doesn't get updated when migrating

no issue

- we have to explicitly reset the previous updated_at field, because Bookshelf auto-updates this field on each update
- detect `options.migrating`
@kirrg001
Copy link
Copy Markdown
Contributor Author

@kevinansfield Don't merge it, i am adding a test.

@kirrg001
Copy link
Copy Markdown
Contributor Author

@kevinansfield Ready to test :)

@kirrg001 kirrg001 merged commit 4b2ebee into TryGhost:master Aug 22, 2018
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.

2 participants