Add migration for isMaster column to isSchedulingPublisher
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user