Copied to clipboard

Flag this post as spam?

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


  • drummerboy46 27 posts 89 karma points
    Sep 05, 2023 @ 21:18
    drummerboy46
    1

    Umbraco migration 7-11/12 - Umbraco Redirects

    For anyone out there considering an Umbraco 7 migration I would highly recommend the fantastic uSync and uSync migrations projects. These tools have given me a massive head start.

    uSync has allowed me to do a like for like transfer of schema and content and even provide a one-stop swap of nested content to block list.

    I did have to write a couple of property converters on the Umbraco 7 side to ensure I had guids instead of Id's, but overall the process has been massively simplified with uSync.

    https://github.com/Jumoo/uSyncMigrations

    One thing I did have a problem with though was Umbraco's internal redirects table. There's no mechanism to transfer as uSync files (c'mon Kevin! ;-) ) it's a bit of a missing link!

    What I have managed to achieve is to export the old table and run a migration script on it that will re-import each entry with the correct SHA1 hashes.

    Sadly you cannot just transfer the table as the hashes are different between versions. Here's the code, it's nothing particularly taxing and will run once on your imported table (I called mine "umbracoRedirectUrl2")

    https://gist.github.com/drummerboy46/0caf52fca4c504212d24479fff8fab2d

  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Sep 06, 2023 @ 09:35
    Marc Goodson
    0

    Thank you drummerboy46!

    I was wondering about the hash

    ... immediately opens up a forthcoming project plan, adds link to drummberboy gist, changes complexity rating from medium to small :-P

    thanks

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft