Skip to content

Adding versions to an existing collection #5353

Answered by DanRibbens
rafalkowalewski asked this question in Q&A
Discussion options

You must be logged in to vote

The list uses the versions collection, which makes it look like there are no documents even when the database has them. If you make a migration that saves all the documents using payload.update({ _status: 'published', where: {}) it should resave all your docs to have a version history.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@komal1220
Comment options

@komal1220
Comment options

@rafalkowalewski
Comment options

@komal1220
Comment options

@rafalkowalewski
Comment options

Answer selected by rafalkowalewski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants