-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Issue description
During the recent automatic upgrades on our cloud sites from v16.2.0 to v16.3.0, the CMS upgrade ran the following two Migrations:
https://github.com/umbraco/Umbraco-CMS/blob/9ad4a7eeba2472cff192860f7f3064fa6ba0097d/src/Umbraco.Infrastructure/Migrations/Upgrade/V_16_3_0/MigrateMediaTypeLabelProperties.cs
https://github.com/umbraco/Umbraco-CMS/blob/9ad4a7eeba2472cff192860f7f3064fa6ba0097d/src/Umbraco.Infrastructure/Migrations/Upgrade/V_16_3_0/AddRichTextEditorCapabilities.cs
These migrations 'changed' the DataType configuration for MediaTypeLabel and RichTextEditor in the Database...
... all good ...
Except
The UDA files that Umbraco Deploy would create if you had manually made those changes, were not commited to the underlying git repository (likely Umbraco Deploy listens for notifications/events to create the UDA files when things change).
As this occurs in a Production environment, you then have differences between the database and the UDA files.
Therefore when you next deploy from staging or development, the UDA files deployed from the cloud git repo, revert the changes made in the migration!
The only way I can think to keep on top of these kinds of changes between point releases, is to put a diary entry into the calendar on point release day, to make sure you manually trigger a full export of uda files into git, to make sure any changes are harvested, before any other deployments between environments take place... however this does take the shine off of the key selling point of Cloud, of auto upgrades! :-P
Could Umbraco Cloud Auto Upgrader trigger an Export of UDA files in this scenario? - every time it autoupgrades? or perhaps only when a Migration has taken place??
Then the changes would be in the git repo, and prevent them from being overriden.