Add migration for isMaster column to isSchedulingPublisher

This commit is contained in:
Jeavon Leopold
2021-09-22 16:27:37 +01:00
parent 5fab8f22c7
commit 43d2eebaaa
3 changed files with 24 additions and 1 deletions

View File

@@ -246,6 +246,9 @@ namespace Umbraco.Cms.Infrastructure.Migrations.Upgrade
.To<DictionaryTablesIndexes>("{12DCDE7F-9AB7-4617-804F-AB66BF360980}")
.As("{5AAE6276-80DB-4ACF-B845-199BC6C37538}");
// TO 9.0.0-rc4
To<UmbracoServerColumn>("5E02F241-5253-403D-B5D3-7DB00157E20F");
// TO 9.0.0
}

View File

@@ -0,0 +1,20 @@
using Umbraco.Cms.Infrastructure.Persistence.Dtos;
namespace Umbraco.Cms.Infrastructure.Migrations.Upgrade.V_9_0_0
{
public class UmbracoServerColumn : MigrationBase
{
public UmbracoServerColumn(IMigrationContext context)
: base(context)
{
}
/// <summary>
/// Adds new columns to members table
/// </summary>
protected override void Migrate()
{
ReplaceColumn<ServerRegistrationDto>(Cms.Core.Constants.DatabaseSchema.Tables.Server, "isMaster", "isSchedulingPublisher");
}
}
}

View File

@@ -34,7 +34,7 @@ namespace Umbraco.Cms.Infrastructure.Persistence.Dtos
[Index(IndexTypes.NonClustered)]
public bool IsActive { get; set; }
[Column("isMaster")]
[Column("isSchedulingPublisher")]
public bool IsSchedulingPublisher { get; set; }
}
}