Vulnerability in EPiServer.Forms
What is the best approach to test the IMigrationStep in order to run it multiple times on our local development environment?
I have a migration step that will create new tables and stored procedures on the CMS database on a new schema. I have been able to re run it again by delete the row on tblBigTable that has the storename column with the name of the migration step assembly.
Is this correct?
Many thanks in advance ;)
I assume you are referring to IMigrationStep in EPiServer.Commerce.Internal.Migration.Steps?
It's an internal interface so support is limited (i.e. there is no way to retry). But you can workaround by return false for Execute step regardless of the result. You can then rerun it until you are happy.
Hi Quan, thanks a lot for the fast help.
So, if on the first time it returned true, it will no long run again, correct?
My ideia, was if returned true on first time, i could rerun again.
yes if it returned true it's not run again. the idea of the migration steps are they run once. For testing purpose, you can simply return false to be able to rerun
In my case, i did already run a step that returned true. so if i want to rerun because it's still on develop and forgot to return false, i restore the database or i could delete the entry on tblBigTable that mention that step. or i shall not delete at all that row?
You can delete the row and restart the site to clear cache. Of course that is strictly "experimental only".
Thank you very much Quan