From d0c4e44e9eab464646464a0da090e1239148be2a Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Wed, 13 Feb 2019 11:02:07 +0100 Subject: [PATCH] Rebuild cache after migration --- .../RadioAndCheckboxAndDropdownPropertyEditorsMigration.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Core/Migrations/Upgrade/V_8_0_0/RadioAndCheckboxAndDropdownPropertyEditorsMigration.cs b/src/Umbraco.Core/Migrations/Upgrade/V_8_0_0/RadioAndCheckboxAndDropdownPropertyEditorsMigration.cs index 5327a344a4..ae2d5c6662 100644 --- a/src/Umbraco.Core/Migrations/Upgrade/V_8_0_0/RadioAndCheckboxAndDropdownPropertyEditorsMigration.cs +++ b/src/Umbraco.Core/Migrations/Upgrade/V_8_0_0/RadioAndCheckboxAndDropdownPropertyEditorsMigration.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Umbraco.Core.Logging; +using Umbraco.Core.Migrations.PostMigrations; using Umbraco.Core.Models; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; @@ -12,9 +13,12 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 { public class RadioAndCheckboxAndDropdownPropertyEditorsMigration : MigrationBase { + private readonly IMigrationContext _context; + public RadioAndCheckboxAndDropdownPropertyEditorsMigration(IMigrationContext context) : base(context) { + _context = context; } public override void Migrate() @@ -27,7 +31,7 @@ namespace Umbraco.Core.Migrations.Upgrade.V_8_0_0 if (refreshCache) { - //FIXME: trigger cache rebuild. Currently the data in the database tables is wrong. + _context.AddPostMigration(); } }