-
Notifications
You must be signed in to change notification settings - Fork 4
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
Document migration failure condition & method for fixing #1
Comments
+1 I also can't find out why a migration failed. I just see 0 completed column in the db |
Do you see any uFluent lines in the UmbracoTraceLog.txt file inside ~/App_Data/Logs/ ? It should start something like this:
|
No, but now I do, and can't reproduce it not happening. |
You'll need to delete that row in the DB otherwise it wont attempt to run the migration again. |
Is there an easier way to re-run a failed migration? as that workflow for my dev environment seems a bit clunky? |
Sorry for the late reply! I've been on holiday. If the migration failed you have to delete the row in the database for the migration. If it has ran 'successfully' but didn't do what you wanted you should do a db restore, but this is rare. We purposely made it slam on the brakes and rollback if anything isn't as expected to ensure nothing can have an adverse effect on our production environment, without this confidence automatic migrations would be a scary business!
The latter has never happened anywhere other than our local dev environments. This is mainly because we follow this workflow, we are 100% confident the migrations that run in test/prod are exactly the same as the ones that executed successfully locally. I totally agree that this adds a little extra effort in dev over a traditional approach, but we have found the advantages far outweigh the disadvantages. We do have plans in future to have a dash in the umbraco back end as you suggested but this will come after the fluent api is 'feature complete'. |
No description provided.
The text was updated successfully, but these errors were encountered: