Copied to clipboard

Flag this post as spam?

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


  • Darryl Leckenby 2 posts 22 karma points
    Jan 10, 2014 @ 11:03
    Darryl Leckenby
    0

    Big Step Migrations - V4 to V7

    Umbraco Community,

     

    I've recently joined a company that uses Umbraco 4 for their website. I am currently looking at the discussion of moving to V7 and I'd like to consider the impact of moving a website from 4 to 7.

    How is the backward-compatibility for V4 to V7 for an existing website or am I looking at a completely fresh re-development and clone of the old site?

    Thanks in advance friends!
    D

  • George 58 posts 165 karma points
    Jan 10, 2014 @ 12:19
    George
    0

    I recently upgraded 4.9 to 7.0.1.

    It is definitely backwards compatible, just download umbraco here http://our.umbraco.org/contribute/releases

    First of all, make a back-up of the whole site and the umbraco database.

    Then you just start merging folders one by one from the installation archive to your website root folder.

    However you would have to carefully go through files in /config and web.config and make sure you update them properly (even though it could take a while), don't overwrite them!

    You would have to rebuild Examine indexes and probably reinstall packages . Some of my custom datatypes disappeared but it wasn't hard to remake them.

    My umbraco database needed some changes too, I will sum them up here:

    ALTER TABLE [dbo].[cmsMacroProperty] drop CONSTRAINT [DF_macroProperty_macroPropertyHidden]
    go
    
    ALTER TABLE [dbo].[cmsMacroProperty] ADD  CONSTRAINT [DF_cmsMacroProperty_macroPropertyHidden] DEFAULT ('0') FOR [macroPropertyHidden]
    GO
    
    ALTER TABLE [dbo].[cmsMacroProperty] 
    ADD CONSTRAINT [FK_cmsMacroProperty_cmsMacroPropertyType_id]
    FOREIGN KEY (id)
    REFERENCES [dbo].[cmsMacroProperty](id)
    GO
    
    ALTER TABLE [dbo].[cmsMacroProperty] drop CONSTRAINT [FK_umbracoMacroProperty_umbracoMacroPropertyType]
    go
    
    ALTER TABLE [dbo].[cmsTagRelationship] drop CONSTRAINT [umbracoNode_cmsTagRelationship]
    go
    
    ALTER TABLE [dbo].[cmsTagRelationship]
    ADD CONSTRAINT [FK_cmsTagRelationship_umbracoNode_id]
    FOREIGN KEY (nodeId)
    REFERENCES [dbo].[umbracoNode](id)
    GO

    Hope this helps! Btw, I updated umbraco only on my local development machine, I am still struggling with some problems while updating it on our actual website, but having done it once gives me hope :)

  • Darryl Leckenby 2 posts 22 karma points
    Jan 10, 2014 @ 12:30
    Darryl Leckenby
    0

    Rene,

    You are a star! Thanks for the fantastically detailed response. It's enough to encourage me to attempt a local update knowing that it is possible!

    Regards,
    Darryl

Please Sign in or register to post replies

Write your reply to:

Draft