Hi
I have some migration scripts which are converting an umbraco website from v4 to v7.2.5
Ocassionally I will restore an old copy of the v4 umbraco DB and re-run the migrations.
On the whole this works well, but I'm having trouble with contour.
Contour thinks it is installed, shows trees etc, but there are no tables in the DB.
I also seem to be missing files from the /usercontrols/umbracoForms/ folder.
Putting in the original 'install forms' dashboard and clicking the install button seems to do nothing.
I tried deleting the UF dashboard entirely, and it just gets re-added.
Deleting the /App_Plugins/UmbracoForms/ folder seems to trigger the DB tables to be created.
It would be good to get an overview of the different pieces and how they fit together to trigger (or not) an install.
Ideally I would like:
The build to pull in the nuget package (UmbracoForms 4.1.4).
One of my migration steps could call a UF method to set up whatever
it needs to set up in the DB.
After a bit of de-compilation and guess work I've worked out I can run all the installation steps in a migration like so:
var formsInstaller = new InstallHelper(null, ApplicationContext.Current);
foreach (Action action in formsInstaller.InstallActions())
{
action();
}
I could just call SilentInstall() but it would mean messing with the 'installed' marker file, this method bypasses that.
This method also throws exceptions instead of logging them.
Manually installing UmbracoForms
Hi I have some migration scripts which are converting an umbraco website from v4 to v7.2.5 Ocassionally I will restore an old copy of the v4 umbraco DB and re-run the migrations.
On the whole this works well, but I'm having trouble with contour. Contour thinks it is installed, shows trees etc, but there are no tables in the DB.
I also seem to be missing files from the
/usercontrols/umbracoForms/
folder.Putting in the original 'install forms' dashboard and clicking the install button seems to do nothing.
I tried deleting the UF dashboard entirely, and it just gets re-added.
Deleting the
/App_Plugins/UmbracoForms/
folder seems to trigger the DB tables to be created.It would be good to get an overview of the different pieces and how they fit together to trigger (or not) an install.
Ideally I would like:
Kind Regards.
Murray.
After a bit of de-compilation and guess work I've worked out I can run all the installation steps in a migration like so:
I could just call SilentInstall() but it would mean messing with the 'installed' marker file, this method bypasses that. This method also throws exceptions instead of logging them.
is working on a reply...