diff --git a/src/persistence/Elsa.Persistence.YesSql/Documents/WorkflowDefinitionDocument.cs b/src/persistence/Elsa.Persistence.YesSql/Documents/WorkflowDefinitionDocument.cs index a3d3281be..33ab0c096 100644 --- a/src/persistence/Elsa.Persistence.YesSql/Documents/WorkflowDefinitionDocument.cs +++ b/src/persistence/Elsa.Persistence.YesSql/Documents/WorkflowDefinitionDocument.cs @@ -18,7 +18,6 @@ namespace Elsa.Persistence.YesSql.Documents public bool IsSingleton { get; set; } public WorkflowPersistenceBehavior PersistenceBehavior { get; set; } public bool DeleteCompletedInstances { get; set; } - public bool IsEnabled { get; set; } public bool IsPublished { get; set; } public bool IsLatest { get; set; } public ICollection Activities { get; set; } = new List(); diff --git a/src/persistence/Elsa.Persistence.YesSql/Indexes/WorkflowDefinitionIndex.cs b/src/persistence/Elsa.Persistence.YesSql/Indexes/WorkflowDefinitionIndex.cs index 7bd356281..8f406e863 100644 --- a/src/persistence/Elsa.Persistence.YesSql/Indexes/WorkflowDefinitionIndex.cs +++ b/src/persistence/Elsa.Persistence.YesSql/Indexes/WorkflowDefinitionIndex.cs @@ -12,7 +12,6 @@ namespace Elsa.Persistence.YesSql.Indexes public int Version { get; set; } public bool IsLatest { get; set; } public bool IsPublished { get; set; } - public bool IsEnabled { get; set; } } public class WorkflowDefinitionIndexProvider : IndexProvider @@ -30,8 +29,7 @@ namespace Elsa.Persistence.YesSql.Indexes DefinitionVersionId = workflowDefinition.DefinitionVersionId, Version = workflowDefinition.Version, IsPublished = workflowDefinition.IsPublished, - IsLatest = workflowDefinition.IsLatest, - IsEnabled = workflowDefinition.IsEnabled + IsLatest = workflowDefinition.IsLatest } ); } diff --git a/src/persistence/Elsa.Persistence.YesSql/Migrations.cs b/src/persistence/Elsa.Persistence.YesSql/Migrations.cs index 7609d3bb4..e8a8a9526 100644 --- a/src/persistence/Elsa.Persistence.YesSql/Migrations.cs +++ b/src/persistence/Elsa.Persistence.YesSql/Migrations.cs @@ -16,8 +16,7 @@ namespace Elsa.Persistence.YesSql .Column(nameof(WorkflowDefinitionIndex.DefinitionVersionId)) .Column(nameof(WorkflowDefinitionIndex.Version)) .Column(nameof(WorkflowDefinitionIndex.IsLatest)) - .Column(nameof(WorkflowDefinitionIndex.IsPublished)) - .Column(nameof(WorkflowDefinitionIndex.IsEnabled)), + .Column(nameof(WorkflowDefinitionIndex.IsPublished)), CollectionNames.WorkflowDefinitions); SchemaBuilder.CreateMapIndexTable( @@ -38,7 +37,7 @@ namespace Elsa.Persistence.YesSql .Column(nameof(WorkflowInstanceIndex.FaultedAt), DbType.DateTime) , CollectionNames.WorkflowInstances); - + SchemaBuilder.CreateMapIndexTable( table => table .Column(nameof(WorkflowInstanceBlockingActivitiesIndex.TenantId)) @@ -48,7 +47,7 @@ namespace Elsa.Persistence.YesSql .Column(nameof(WorkflowInstanceBlockingActivitiesIndex.WorkflowStatus), DbType.String) .Column(nameof(WorkflowInstanceBlockingActivitiesIndex.CreatedAt), DbType.DateTime), CollectionNames.WorkflowInstances); - + SchemaBuilder.CreateMapIndexTable( table => table .Column(nameof(WorkflowExecutionLogRecordIndex.RecordId)) @@ -56,7 +55,7 @@ namespace Elsa.Persistence.YesSql .Column(nameof(WorkflowExecutionLogRecordIndex.WorkflowInstanceId)) .Column(nameof(WorkflowExecutionLogRecordIndex.Timestamp), DbType.DateTime), CollectionNames.WorkflowExecutionLog); - + SchemaBuilder.CreateMapIndexTable( table => table .Column(nameof(BookmarkIndex.BookmarkId))