< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 130
Coverable lines: 130
Total lines: 181
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/Alterations/20250222190815_V3_4.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Alterations
 6{
 7    /// <inheritdoc />
 8    public partial class V3_4 : Migration
 9    {
 10        private readonly Elsa.Persistence.EFCore.IElsaDbContextSchema _schema;
 11
 12        /// <inheritdoc />
 013        public V3_4(Elsa.Persistence.EFCore.IElsaDbContextSchema schema)
 14        {
 015            _schema = schema;
 016        }
 17
 18        /// <inheritdoc />
 19        protected override void Up(MigrationBuilder migrationBuilder)
 20        {
 021            migrationBuilder.EnsureSchema(
 022                name: _schema.Schema);
 23
 024            migrationBuilder.RenameTable(
 025                name: "AlterationPlans",
 026                newName: "AlterationPlans",
 027                newSchema: _schema.Schema);
 28
 029            migrationBuilder.RenameTable(
 030                name: "AlterationJobs",
 031                newName: "AlterationJobs",
 032                newSchema: _schema.Schema);
 033        }
 34
 35        /// <inheritdoc />
 36        protected override void Down(MigrationBuilder migrationBuilder)
 37        {
 038            migrationBuilder.RenameTable(
 039                name: "AlterationPlans",
 040                schema: _schema.Schema,
 041                newName: "AlterationPlans");
 42
 043            migrationBuilder.RenameTable(
 044                name: "AlterationJobs",
 045                schema: _schema.Schema,
 046                newName: "AlterationJobs");
 047        }
 48    }
 49}

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Alterations/20250222190815_V3_4.Designer.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Elsa.Persistence.EFCore.Modules.Alterations;
 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.Alterations
 12{
 13    [DbContext(typeof(AlterationsElsaDbContext))]
 14    [Migration("20250222190815_V3_4")]
 15    partial class V3_4
 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", "8.0.12");
 24
 025            modelBuilder.Entity("Elsa.Alterations.Core.Entities.AlterationJob", b =>
 026                {
 027                    b.Property<string>("Id")
 028                        .HasColumnType("TEXT");
 029
 030                    b.Property<DateTimeOffset?>("CompletedAt")
 031                        .HasColumnType("TEXT");
 032
 033                    b.Property<DateTimeOffset>("CreatedAt")
 034                        .HasColumnType("TEXT");
 035
 036                    b.Property<string>("PlanId")
 037                        .IsRequired()
 038                        .HasColumnType("TEXT");
 039
 040                    b.Property<string>("SerializedLog")
 041                        .HasColumnType("TEXT");
 042
 043                    b.Property<DateTimeOffset?>("StartedAt")
 044                        .HasColumnType("TEXT");
 045
 046                    b.Property<string>("Status")
 047                        .IsRequired()
 048                        .HasColumnType("TEXT");
 049
 050                    b.Property<string>("TenantId")
 051                        .HasColumnType("TEXT");
 052
 053                    b.Property<string>("WorkflowInstanceId")
 054                        .IsRequired()
 055                        .HasColumnType("TEXT");
 056
 057                    b.HasKey("Id");
 058
 059                    b.HasIndex("CompletedAt")
 060                        .HasDatabaseName("IX_AlterationJob_CompletedAt");
 061
 062                    b.HasIndex("CreatedAt")
 063                        .HasDatabaseName("IX_AlterationJob_CreatedAt");
 064
 065                    b.HasIndex("PlanId")
 066                        .HasDatabaseName("IX_AlterationJob_PlanId");
 067
 068                    b.HasIndex("StartedAt")
 069                        .HasDatabaseName("IX_AlterationJob_StartedAt");
 070
 071                    b.HasIndex("Status")
 072                        .HasDatabaseName("IX_AlterationJob_Status");
 073
 074                    b.HasIndex("TenantId")
 075                        .HasDatabaseName("IX_AlterationJob_TenantId");
 076
 077                    b.HasIndex("WorkflowInstanceId")
 078                        .HasDatabaseName("IX_AlterationJob_WorkflowInstanceId");
 079
 080                    b.ToTable("AlterationJobs", "Elsa");
 081                });
 82
 083            modelBuilder.Entity("Elsa.Alterations.Core.Entities.AlterationPlan", b =>
 084                {
 085                    b.Property<string>("Id")
 086                        .HasColumnType("TEXT");
 087
 088                    b.Property<DateTimeOffset?>("CompletedAt")
 089                        .HasColumnType("TEXT");
 090
 091                    b.Property<DateTimeOffset>("CreatedAt")
 092                        .HasColumnType("TEXT");
 093
 094                    b.Property<string>("SerializedAlterations")
 095                        .HasColumnType("TEXT");
 096
 097                    b.Property<string>("SerializedWorkflowInstanceFilter")
 098                        .HasColumnType("TEXT");
 099
 0100                    b.Property<DateTimeOffset?>("StartedAt")
 0101                        .HasColumnType("TEXT");
 0102
 0103                    b.Property<string>("Status")
 0104                        .IsRequired()
 0105                        .HasColumnType("TEXT");
 0106
 0107                    b.Property<string>("TenantId")
 0108                        .HasColumnType("TEXT");
 0109
 0110                    b.HasKey("Id");
 0111
 0112                    b.HasIndex("CompletedAt")
 0113                        .HasDatabaseName("IX_AlterationPlan_CompletedAt");
 0114
 0115                    b.HasIndex("CreatedAt")
 0116                        .HasDatabaseName("IX_AlterationPlan_CreatedAt");
 0117
 0118                    b.HasIndex("StartedAt")
 0119                        .HasDatabaseName("IX_AlterationPlan_StartedAt");
 0120
 0121                    b.HasIndex("Status")
 0122                        .HasDatabaseName("IX_AlterationPlan_Status");
 0123
 0124                    b.HasIndex("TenantId")
 0125                        .HasDatabaseName("IX_AlterationPlan_TenantId");
 0126
 0127                    b.ToTable("AlterationPlans", "Elsa");
 0128                });
 129#pragma warning restore 612, 618
 0130        }
 131    }
 132}