Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • andrew shearer 506 posts 653 karma points
    Oct 06, 2022 @ 22:42
    andrew shearer
    0

    Content version history clean-up

    Hello

    I am looking for a script (or package) that can clean up everything apart from the currently published version (green box) i.e.

    1. All old versions of the page (yellow box)
    2. Any saved/pending changes since the published version (orange box)

    enter image description here

    I ‘ve searched the forum and found a few references to this script: clean-db-Umbraco-7.5.14.sql https://gist.github.com/genckastrati/0e7f7ae6156647e00a56eb5ef403166d

    but that only covers #1, not #2.

    Anyone done this before and can recommend something?

    This is for Umbraco 7.15. Ultimately, I’m preparing the content for an Umbraco 10 migration and don’t need to carry over any of the history, but the ‘pending changes’ versions seem to be affecting my ability to update content that needs to change to UDI based format.

    Cheers

    Andrew

  • andrew shearer 506 posts 653 karma points
    Oct 06, 2022 @ 22:44
    andrew shearer
    0

    NB it seems the 'Save' versions is just the content editor using the 'save + preview' button to see the page, not actual content revisions

  • MrFlo 159 posts 403 karma points
    Oct 07, 2022 @ 08:56
    MrFlo
    0

    Hi Andrew,

    Did you check https://github.com/skttl/umbraco-unversion for Umbraco 7 ?

  • andrew shearer 506 posts 653 karma points
    Oct 10, 2022 @ 19:39
    andrew shearer
    0

    Hi - thanks, yeah I had seen that package but hadn't tried it yet. Can you configure it to clean up saved versions since the latest published version?

  • andrew shearer 506 posts 653 karma points
    Oct 19, 2022 @ 20:34
    andrew shearer
    0

    https://github.com/skttl/umbraco-unversion doesn't seem to do anything on Umbraco 7.15 (is doesn't automatically run)

  • Bo Jacobsen 597 posts 2395 karma points
    Oct 20, 2022 @ 07:31
    Bo Jacobsen
    0

    Hi Andrew.

    I think Unversion only runs on save and publish events. However, I would highly recommend Unversion. It works like a charm.

    Clearing the history is not the same as clearing the versions. So if you also wanna clearing the history, you will have to do it in another way.

    The History tab you show, only shows, who did what and when. Even if you remove all the versions from the document, the history will still be there.

    The versions you are looking for is avaiable in the rollback option on a document.

Please Sign in or register to post replies

Write your reply to:

Draft