< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 221
Coverable lines: 221
Total lines: 269
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/20251116182711_V3_6.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_6 : Migration
 9    {
 10        private readonly Elsa.Persistence.EFCore.IElsaDbContextSchema _schema;
 11
 12        /// <inheritdoc />
 013        public V3_6(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
 14        {
 015            _schema = schema;
 016        }
 17
 18        /// <inheritdoc />
 19        protected override void Up(MigrationBuilder migrationBuilder)
 20        {
 021            migrationBuilder.AddColumn<string>(
 022                name: "OriginalSource",
 023                schema: _schema.Schema,
 024                table: "WorkflowDefinitions",
 025                type: "TEXT",
 026                nullable: true);
 027        }
 28
 29        /// <inheritdoc />
 30        protected override void Down(MigrationBuilder migrationBuilder)
 31        {
 032            migrationBuilder.DropColumn(
 033                name: "OriginalSource",
 034                schema: _schema.Schema,
 035                table: "WorkflowDefinitions");
 036        }
 37    }
 38}

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Management/20251116182711_V3_6.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("20251116182711_V3_6")]
 15    partial class V3_6
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 021            modelBuilder
 022                .HasDefaultSchema("Elsa")
 023                .HasAnnotation("ProductVersion", "9.0.10");
 24
 025            modelBuilder.Entity("Elsa.Workflows.Management.Entities.WorkflowDefinition", b =>
 026                {
 027                    b.Property<string>("Id")
 028                        .HasColumnType("TEXT");
 029
 030                    b.Property<byte[]>("BinaryData")
 031                        .HasColumnType("BLOB");
 032
 033                    b.Property<DateTimeOffset>("CreatedAt")
 034                        .HasColumnType("TEXT");
 035
 036                    b.Property<string>("Data")
 037                        .HasColumnType("TEXT");
 038
 039                    b.Property<string>("DefinitionId")
 040                        .IsRequired()
 041                        .HasColumnType("TEXT");
 042
 043                    b.Property<string>("Description")
 044                        .HasColumnType("TEXT");
 045
 046                    b.Property<bool>("IsLatest")
 047                        .HasColumnType("INTEGER");
 048
 049                    b.Property<bool>("IsPublished")
 050                        .HasColumnType("INTEGER");
 051
 052                    b.Property<bool>("IsReadonly")
 053                        .HasColumnType("INTEGER");
 054
 055                    b.Property<bool>("IsSystem")
 056                        .HasColumnType("INTEGER");
 057
 058                    b.Property<string>("MaterializerContext")
 059                        .HasColumnType("TEXT");
 060
 061                    b.Property<string>("MaterializerName")
 062                        .IsRequired()
 063                        .HasColumnType("TEXT");
 064
 065                    b.Property<string>("Name")
 066                        .HasColumnType("TEXT");
 067
 068                    b.Property<string>("OriginalSource")
 069                        .HasColumnType("TEXT");
 070
 071                    b.Property<string>("ProviderName")
 072                        .HasColumnType("TEXT");
 073
 074                    b.Property<string>("StringData")
 075                        .HasColumnType("TEXT");
 076
 077                    b.Property<string>("TenantId")
 078                        .HasColumnType("TEXT");
 079
 080                    b.Property<string>("ToolVersion")
 081                        .HasColumnType("TEXT");
 082
 083                    b.Property<bool?>("UsableAsActivity")
 084                        .HasColumnType("INTEGER");
 085
 086                    b.Property<int>("Version")
 087                        .HasColumnType("INTEGER");
 088
 089                    b.HasKey("Id");
 090
 091                    b.HasIndex("IsLatest")
 092                        .HasDatabaseName("IX_WorkflowDefinition_IsLatest");
 093
 094                    b.HasIndex("IsPublished")
 095                        .HasDatabaseName("IX_WorkflowDefinition_IsPublished");
 096
 097                    b.HasIndex("IsSystem")
 098                        .HasDatabaseName("IX_WorkflowDefinition_IsSystem");
 099
 0100                    b.HasIndex("Name")
 0101                        .HasDatabaseName("IX_WorkflowDefinition_Name");
 0102
 0103                    b.HasIndex("TenantId")
 0104                        .HasDatabaseName("IX_WorkflowDefinition_TenantId");
 0105
 0106                    b.HasIndex("UsableAsActivity")
 0107                        .HasDatabaseName("IX_WorkflowDefinition_UsableAsActivity");
 0108
 0109                    b.HasIndex("Version")
 0110                        .HasDatabaseName("IX_WorkflowDefinition_Version");
 0111
 0112                    b.HasIndex("DefinitionId", "Version")
 0113                        .IsUnique()
 0114                        .HasDatabaseName("IX_WorkflowDefinition_DefinitionId_Version");
 0115
 0116                    b.ToTable("WorkflowDefinitions", "Elsa");
 0117                });
 118
 0119            modelBuilder.Entity("Elsa.Workflows.Management.Entities.WorkflowInstance", b =>
 0120                {
 0121                    b.Property<string>("Id")
 0122                        .HasColumnType("TEXT");
 0123
 0124                    b.Property<string>("CorrelationId")
 0125                        .HasColumnType("TEXT");
 0126
 0127                    b.Property<DateTimeOffset>("CreatedAt")
 0128                        .HasColumnType("TEXT");
 0129
 0130                    b.Property<string>("Data")
 0131                        .HasColumnType("TEXT");
 0132
 0133                    b.Property<string>("DataCompressionAlgorithm")
 0134                        .HasColumnType("TEXT");
 0135
 0136                    b.Property<string>("DefinitionId")
 0137                        .IsRequired()
 0138                        .HasColumnType("TEXT");
 0139
 0140                    b.Property<string>("DefinitionVersionId")
 0141                        .IsRequired()
 0142                        .HasColumnType("TEXT");
 0143
 0144                    b.Property<DateTimeOffset?>("FinishedAt")
 0145                        .HasColumnType("TEXT");
 0146
 0147                    b.Property<int>("IncidentCount")
 0148                        .HasColumnType("INTEGER");
 0149
 0150                    b.Property<bool>("IsExecuting")
 0151                        .HasColumnType("INTEGER");
 0152
 0153                    b.Property<bool>("IsSystem")
 0154                        .HasColumnType("INTEGER");
 0155
 0156                    b.Property<string>("Name")
 0157                        .HasColumnType("TEXT");
 0158
 0159                    b.Property<string>("ParentWorkflowInstanceId")
 0160                        .HasColumnType("TEXT");
 0161
 0162                    b.Property<string>("Status")
 0163                        .IsRequired()
 0164                        .HasColumnType("TEXT");
 0165
 0166                    b.Property<string>("SubStatus")
 0167                        .IsRequired()
 0168                        .HasColumnType("TEXT");
 0169
 0170                    b.Property<string>("TenantId")
 0171                        .HasColumnType("TEXT");
 0172
 0173                    b.Property<DateTimeOffset>("UpdatedAt")
 0174                        .HasColumnType("TEXT");
 0175
 0176                    b.Property<int>("Version")
 0177                        .HasColumnType("INTEGER");
 0178
 0179                    b.HasKey("Id");
 0180
 0181                    b.HasIndex("CorrelationId")
 0182                        .HasDatabaseName("IX_WorkflowInstance_CorrelationId");
 0183
 0184                    b.HasIndex("CreatedAt")
 0185                        .HasDatabaseName("IX_WorkflowInstance_CreatedAt");
 0186
 0187                    b.HasIndex("DefinitionId")
 0188                        .HasDatabaseName("IX_WorkflowInstance_DefinitionId");
 0189
 0190                    b.HasIndex("FinishedAt")
 0191                        .HasDatabaseName("IX_WorkflowInstance_FinishedAt");
 0192
 0193                    b.HasIndex("IsExecuting")
 0194                        .HasDatabaseName("IX_WorkflowInstance_IsExecuting");
 0195
 0196                    b.HasIndex("IsSystem")
 0197                        .HasDatabaseName("IX_WorkflowInstance_IsSystem");
 0198
 0199                    b.HasIndex("Name")
 0200                        .HasDatabaseName("IX_WorkflowInstance_Name");
 0201
 0202                    b.HasIndex("Status")
 0203                        .HasDatabaseName("IX_WorkflowInstance_Status");
 0204
 0205                    b.HasIndex("SubStatus")
 0206                        .HasDatabaseName("IX_WorkflowInstance_SubStatus");
 0207
 0208                    b.HasIndex("TenantId")
 0209                        .HasDatabaseName("IX_WorkflowInstance_TenantId");
 0210
 0211                    b.HasIndex("UpdatedAt")
 0212                        .HasDatabaseName("IX_WorkflowInstance_UpdatedAt");
 0213
 0214                    b.HasIndex("Status", "DefinitionId")
 0215                        .HasDatabaseName("IX_WorkflowInstance_Status_DefinitionId");
 0216
 0217                    b.HasIndex("Status", "SubStatus")
 0218                        .HasDatabaseName("IX_WorkflowInstance_Status_SubStatus");
 0219
 0220                    b.HasIndex("SubStatus", "DefinitionId")
 0221                        .HasDatabaseName("IX_WorkflowInstance_SubStatus_DefinitionId");
 0222
 0223                    b.HasIndex("Status", "SubStatus", "DefinitionId", "Version")
 0224                        .HasDatabaseName("IX_WorkflowInstance_Status_SubStatus_DefinitionId_Version");
 0225
 0226                    b.ToTable("WorkflowInstances", "Elsa");
 0227                });
 228#pragma warning restore 612, 618
 0229        }
 230    }
 231}