Adding versions to an existing collection #5353
-
Hi, I've added
I couldn't find anything on the Internet, only one thing on the drafts documentation, but it doesn't work for me to see the "old" articles on Admin UI.
Do you know how to solve it? Shall I do it via migration script or something else? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
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 |
Beta Was this translation helpful? Give feedback.
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.