< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 191
Coverable lines: 191
Total lines: 241
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
File 1: .ctor(...)100%210%
File 1: Up(...)100%210%
File 1: Down(...)100%210%
File 2: BuildTargetModel(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Management/20240610184829_V3_2.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Management
 6{
 7    /// <inheritdoc />
 8    public partial class V3_2 : Migration
 9    {
 10        private readonly IElsaDbContextSchema _schema;
 11
 12        /// <inheritdoc />
 013        public V3_2(IElsaDbContextSchema schema)
 14        {
 015            _schema = schema;
 016        }
 17
 18        /// <inheritdoc />
 19        protected override void Up(MigrationBuilder migrationBuilder)
 20        {
 21
 022        }
 23
 24        /// <inheritdoc />
 25        protected override void Down(MigrationBuilder migrationBuilder)
 26        {
 27
 028        }
 29    }
 30}

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Management/20240610184829_V3_2.Designer.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Elsa.Persistence.EFCore.Modules.Management;
 4using Microsoft.EntityFrameworkCore;
 5using Microsoft.EntityFrameworkCore.Infrastructure;
 6using Microsoft.EntityFrameworkCore.Migrations;
 7using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 8
 9#nullable disable
 10
 11namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Management
 12{
 13    [DbContext(typeof(ManagementElsaDbContext))]
 14    [Migration("20240610184829_V3_2")]
 15    partial class V3_2
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 021            modelBuilder.HasAnnotation("ProductVersion", "7.0.20");
 22
 023            modelBuilder.Entity("Elsa.Workflows.Management.Entities.WorkflowDefinition", b =>
 024                {
 025                    b.Property<string>("Id")
 026                        .HasColumnType("TEXT");
 027
 028                    b.Property<byte[]>("BinaryData")
 029                        .HasColumnType("BLOB");
 030
 031                    b.Property<string>("CreatedAt")
 032                        .IsRequired()
 033                        .HasColumnType("TEXT");
 034
 035                    b.Property<string>("Data")
 036                        .HasColumnType("TEXT");
 037
 038                    b.Property<string>("DefinitionId")
 039                        .IsRequired()
 040                        .HasColumnType("TEXT");
 041
 042                    b.Property<string>("Description")
 043                        .HasColumnType("TEXT");
 044
 045                    b.Property<bool>("IsLatest")
 046                        .HasColumnType("INTEGER");
 047
 048                    b.Property<bool>("IsPublished")
 049                        .HasColumnType("INTEGER");
 050
 051                    b.Property<bool>("IsReadonly")
 052                        .HasColumnType("INTEGER");
 053
 054                    b.Property<bool>("IsSystem")
 055                        .HasColumnType("INTEGER");
 056
 057                    b.Property<string>("MaterializerContext")
 058                        .HasColumnType("TEXT");
 059
 060                    b.Property<string>("MaterializerName")
 061                        .IsRequired()
 062                        .HasColumnType("TEXT");
 063
 064                    b.Property<string>("Name")
 065                        .HasColumnType("TEXT");
 066
 067                    b.Property<string>("ProviderName")
 068                        .HasColumnType("TEXT");
 069
 070                    b.Property<string>("StringData")
 071                        .HasColumnType("TEXT");
 072
 073                    b.Property<string>("ToolVersion")
 074                        .HasColumnType("TEXT");
 075
 076                    b.Property<bool?>("UsableAsActivity")
 077                        .HasColumnType("INTEGER");
 078
 079                    b.Property<int>("Version")
 080                        .HasColumnType("INTEGER");
 081
 082                    b.HasKey("Id");
 083
 084                    b.HasIndex("IsLatest")
 085                        .HasDatabaseName("IX_WorkflowDefinition_IsLatest");
 086
 087                    b.HasIndex("IsPublished")
 088                        .HasDatabaseName("IX_WorkflowDefinition_IsPublished");
 089
 090                    b.HasIndex("IsSystem")
 091                        .HasDatabaseName("IX_WorkflowDefinition_IsSystem");
 092
 093                    b.HasIndex("Name")
 094                        .HasDatabaseName("IX_WorkflowDefinition_Name");
 095
 096                    b.HasIndex("UsableAsActivity")
 097                        .HasDatabaseName("IX_WorkflowDefinition_UsableAsActivity");
 098
 099                    b.HasIndex("Version")
 0100                        .HasDatabaseName("IX_WorkflowDefinition_Version");
 0101
 0102                    b.HasIndex("DefinitionId", "Version")
 0103                        .IsUnique()
 0104                        .HasDatabaseName("IX_WorkflowDefinition_DefinitionId_Version");
 0105
 0106                    b.ToTable("WorkflowDefinitions");
 0107                });
 108
 0109            modelBuilder.Entity("Elsa.Workflows.Management.Entities.WorkflowInstance", b =>
 0110                {
 0111                    b.Property<string>("Id")
 0112                        .HasColumnType("TEXT");
 0113
 0114                    b.Property<string>("CorrelationId")
 0115                        .HasColumnType("TEXT");
 0116
 0117                    b.Property<string>("CreatedAt")
 0118                        .IsRequired()
 0119                        .HasColumnType("TEXT");
 0120
 0121                    b.Property<string>("Data")
 0122                        .HasColumnType("TEXT");
 0123
 0124                    b.Property<string>("DataCompressionAlgorithm")
 0125                        .HasColumnType("TEXT");
 0126
 0127                    b.Property<string>("DefinitionId")
 0128                        .IsRequired()
 0129                        .HasColumnType("TEXT");
 0130
 0131                    b.Property<string>("DefinitionVersionId")
 0132                        .IsRequired()
 0133                        .HasColumnType("TEXT");
 0134
 0135                    b.Property<string>("FinishedAt")
 0136                        .HasColumnType("TEXT");
 0137
 0138                    b.Property<int>("IncidentCount")
 0139                        .HasColumnType("INTEGER");
 0140
 0141                    b.Property<bool>("IsSystem")
 0142                        .HasColumnType("INTEGER");
 0143
 0144                    b.Property<string>("Name")
 0145                        .HasColumnType("TEXT");
 0146
 0147                    b.Property<string>("ParentWorkflowInstanceId")
 0148                        .HasColumnType("TEXT");
 0149
 0150                    b.Property<string>("Status")
 0151                        .IsRequired()
 0152                        .HasColumnType("TEXT");
 0153
 0154                    b.Property<string>("SubStatus")
 0155                        .IsRequired()
 0156                        .HasColumnType("TEXT");
 0157
 0158                    b.Property<string>("UpdatedAt")
 0159                        .IsRequired()
 0160                        .HasColumnType("TEXT");
 0161
 0162                    b.Property<int>("Version")
 0163                        .HasColumnType("INTEGER");
 0164
 0165                    b.HasKey("Id");
 0166
 0167                    b.HasIndex("CorrelationId")
 0168                        .HasDatabaseName("IX_WorkflowInstance_CorrelationId");
 0169
 0170                    b.HasIndex("CreatedAt")
 0171                        .HasDatabaseName("IX_WorkflowInstance_CreatedAt");
 0172
 0173                    b.HasIndex("DefinitionId")
 0174                        .HasDatabaseName("IX_WorkflowInstance_DefinitionId");
 0175
 0176                    b.HasIndex("FinishedAt")
 0177                        .HasDatabaseName("IX_WorkflowInstance_FinishedAt");
 0178
 0179                    b.HasIndex("IsSystem")
 0180                        .HasDatabaseName("IX_WorkflowInstance_IsSystem");
 0181
 0182                    b.HasIndex("Name")
 0183                        .HasDatabaseName("IX_WorkflowInstance_Name");
 0184
 0185                    b.HasIndex("Status")
 0186                        .HasDatabaseName("IX_WorkflowInstance_Status");
 0187
 0188                    b.HasIndex("SubStatus")
 0189                        .HasDatabaseName("IX_WorkflowInstance_SubStatus");
 0190
 0191                    b.HasIndex("UpdatedAt")
 0192                        .HasDatabaseName("IX_WorkflowInstance_UpdatedAt");
 0193
 0194                    b.HasIndex("Status", "DefinitionId")
 0195                        .HasDatabaseName("IX_WorkflowInstance_Status_DefinitionId");
 0196
 0197                    b.HasIndex("Status", "SubStatus")
 0198                        .HasDatabaseName("IX_WorkflowInstance_Status_SubStatus");
 0199
 0200                    b.HasIndex("SubStatus", "DefinitionId")
 0201                        .HasDatabaseName("IX_WorkflowInstance_SubStatus_DefinitionId");
 0202
 0203                    b.HasIndex("Status", "SubStatus", "DefinitionId", "Version")
 0204                        .HasDatabaseName("IX_WorkflowInstance_Status_SubStatus_DefinitionId_Version");
 0205
 0206                    b.ToTable("WorkflowInstances");
 0207                });
 208#pragma warning restore 612, 618
 0209        }
 210    }
 211}