Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't update from Umbraco Forms 10.5.6 to Umbraco Forms 11.. #1265

Open
mistyn8 opened this issue Jul 25, 2024 · 1 comment
Open

Can't update from Umbraco Forms 10.5.6 to Umbraco Forms 11.. #1265

mistyn8 opened this issue Jul 25, 2024 · 1 comment

Comments

@mistyn8
Copy link

mistyn8 commented Jul 25, 2024

It would seem that the latest migration present in 10.5.6 sets the migration key to 22df962a-ae26-4bdd-b8fd-0513a9c636bf but that migration step doesn't exist in any version of umbraco forms 11. (10.5.6 being newer than any 11) and so the migration fails and the site fails to load.
.To<EnsureIndexOnFormFolderKey>("22df962a-ae26-4bdd-b8fd-0513a9c636bf");

I can see it's present in 12.2.4

I know I could go umb 10 straight to 13 (skipping between LTS).. but I've always done updates via the last release of interim majors.. for the reason mentioned in the docs..

You can upgrade from Umbraco 10 to the latest version directly. If you choose to skip upgrading to versions 11 and 12, you will no longer receive warning messages for obsolete features. However, if you do skip these versions, any breaking changes will no longer compile

My reasoning is to catch the warnings for obsolete features rather than have to mend a broken site with no context.

I can see it is a tricky one.. as you are supporting the LTS 10, and with 11/12 being STS out of support, the LTS 13 and brand new 14 will be your focus.. (I'm also having to go to 11 first as that's the last release to support DoctypeGridEditor)

It's almost like you have to flag the v10 LTS patch as being outside the version flow of 11/12 but how you'd do that I'm not sure?

I did mange to work around it by setting the migration value in the db back to .To<NoopMigration>("5d84fee1-388c-4e5f-b98c-1e66947278f1") and the v11 instance is now working.

@AndyButland
Copy link

Yes, I see the issue. Sounds like you have worked around it but just to make the method clearer for anyone else coming across this, once you have upgraded to 11 run this in the database:

UPDATE umbracoKeyValue
SET value = '5d84fee1-388c-4e5f-b98c-1e66947278f1' -- last migration state from Forms 11
WHERE [key] = 'Umbraco.Core.Upgrader.State+UmbracoForms'

As you say, that'll set the migration state back to the last known one in 11. Once you upgrade to 12 or higher, it'll pick up from there, run the update that you have "missed" (but actually already have from 10)..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants