Add queue hardening by modifying DeploymentJobTargets, DeploymentJobSteps, and DeploymentJobs tables
- Drop existing indexes on DeploymentJobTargets and DeploymentJobSteps - Alter Status column to nvarchar(450) in DeploymentJobTargets, DeploymentJobSteps, and DeploymentJobs - Add new columns: Finished, OutputMetadataJson, Started to DeploymentJobTargets; ErrorMessage, Finished, OutputMetadataJson, Started to DeploymentJobSteps; CorrelationId, HeartbeatAt, Priority, RowVersion, ScheduledAt, WorkerName to DeploymentJobs - Create new indexes for improved query performance - Add constraints to ensure OutputMetadataJson is valid JSON - Record migration in __EFMigrationsHistory
This commit is contained in:
@@ -1,20 +1,29 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.DeploymentComposition.Add;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentBatch.Add
|
||||
{
|
||||
public class AddDeploymentBatchDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public Guid TemplateId { get; set; }
|
||||
public Guid? TemplateId { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public Guid? DeploymentRuleId { get; set; }
|
||||
public Guid? TemplateVersionId { get; set; }
|
||||
|
||||
[Column(Order = 3)]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
public Guid? DeploymentRuleId { get; set; }
|
||||
|
||||
[Column(Order = 4)]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 5)]
|
||||
public ICollection<Guid>? TargetIds { get; set; }
|
||||
|
||||
[Column(Order = 6)]
|
||||
public ICollection<AddDeploymentTemplateSelectionDto>? TemplateSelections { get; set; }
|
||||
|
||||
[Column(Order = 7)]
|
||||
public ICollection<AddDeploymentTargetAssignmentDto>? TargetAssignments { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user