Markus Johansson
10/07/2024, 8:05 AMpropertyEditorUiAlias
of the datatype during a upgrade to v14.
I've been using MigrationBase
for migrations since before PackageMigrationBase
was introduced. I tried to use the PackageMigrationBase
this time but it did not run during the upgrade from v13 to v14 - I had to restart the website again for it to run.
I've tried to read the documentation but I can't really understand:
* What is the difference between the "bare metal" migrations (MigrationBase) and the package-specific ones? (PackageMigrationBase)?
* As a package dev, when should I use one over the other?
* There is also a setting Umbraco.Cms.PackageMigration.RunSchemaAndContentMigrations
, what is the idea here? When would a package consumer want to disable the package migrations? Is this to try to isolate them if there are issues in a certain package migration that prevent upgrades?
I've noticed that there is a UI in the Developer-section so that consumers of a package can decide if they want to run package migrations or not - I don't get the idea here - how would one of my package consumers know that they need to click on this button? Does anyone have a good real-world use case for this that you could explain to help me understand?
Cheers!Warren Buckley
10/07/2024, 8:09 AMWarren Buckley
10/07/2024, 8:10 AMWarren Buckley
10/07/2024, 8:12 AMWarren Buckley
10/07/2024, 8:14 AMAutomaticPackageMigrationPlan
it scans the assembly for a package.zip in the embedded resource, gets a hash of the file and sets that as the migration state to run to.
https://github.com/umbraco/Umbraco-CMS/blob/4090829fe8bcb620b266547769d5372ac0b28c80/src/Umbraco.Infrastructure/Packaging/AutomaticPackageMigrationPlan.csWarren Buckley
10/07/2024, 8:14 AMJemayn
10/07/2024, 8:22 AMMarkus Johansson
10/07/2024, 9:08 AMMarkus Johansson
10/07/2024, 9:08 AM