< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 89
Coverable lines: 89
Total lines: 139
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/Labels/20250222190951_V3_4.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Labels
 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: "WorkflowDefinitionLabels",
 026                newName: "WorkflowDefinitionLabels",
 027                newSchema: _schema.Schema);
 28
 029            migrationBuilder.RenameTable(
 030                name: "Labels",
 031                newName: "Labels",
 032                newSchema: _schema.Schema);
 033        }
 34
 35        /// <inheritdoc />
 36        protected override void Down(MigrationBuilder migrationBuilder)
 37        {
 038            migrationBuilder.RenameTable(
 039                name: "WorkflowDefinitionLabels",
 040                schema: _schema.Schema,
 041                newName: "WorkflowDefinitionLabels");
 42
 043            migrationBuilder.RenameTable(
 044                name: "Labels",
 045                schema: _schema.Schema,
 046                newName: "Labels");
 047        }
 48    }
 49}

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

#LineLine coverage
 1// <auto-generated />
 2using Elsa.Persistence.EFCore.Modules.Labels;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Migrations;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7
 8#nullable disable
 9
 10namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Labels
 11{
 12    [DbContext(typeof(LabelsElsaDbContext))]
 13    [Migration("20250222190951_V3_4")]
 14    partial class V3_4
 15    {
 16        /// <inheritdoc />
 17        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 18        {
 19#pragma warning disable 612, 618
 020            modelBuilder
 021                .HasDefaultSchema("Elsa")
 022                .HasAnnotation("ProductVersion", "8.0.12");
 23
 024            modelBuilder.Entity("Elsa.Labels.Entities.Label", b =>
 025                {
 026                    b.Property<string>("Id")
 027                        .HasColumnType("TEXT");
 028
 029                    b.Property<string>("Color")
 030                        .HasColumnType("TEXT");
 031
 032                    b.Property<string>("Description")
 033                        .HasColumnType("TEXT");
 034
 035                    b.Property<string>("Name")
 036                        .IsRequired()
 037                        .HasColumnType("TEXT");
 038
 039                    b.Property<string>("NormalizedName")
 040                        .IsRequired()
 041                        .HasColumnType("TEXT");
 042
 043                    b.Property<string>("TenantId")
 044                        .HasColumnType("TEXT");
 045
 046                    b.HasKey("Id");
 047
 048                    b.ToTable("Labels", "Elsa");
 049                });
 50
 051            modelBuilder.Entity("Elsa.Labels.Entities.WorkflowDefinitionLabel", b =>
 052                {
 053                    b.Property<string>("Id")
 054                        .HasColumnType("TEXT");
 055
 056                    b.Property<string>("LabelId")
 057                        .IsRequired()
 058                        .HasColumnType("TEXT");
 059
 060                    b.Property<string>("TenantId")
 061                        .HasColumnType("TEXT");
 062
 063                    b.Property<string>("WorkflowDefinitionId")
 064                        .IsRequired()
 065                        .HasColumnType("TEXT");
 066
 067                    b.Property<string>("WorkflowDefinitionVersionId")
 068                        .IsRequired()
 069                        .HasColumnType("TEXT");
 070
 071                    b.HasKey("Id");
 072
 073                    b.HasIndex("LabelId")
 074                        .HasDatabaseName("WorkflowDefinitionLabel_LabelId");
 075
 076                    b.HasIndex("TenantId")
 077                        .HasDatabaseName("WorkflowDefinitionLabel_TenantId");
 078
 079                    b.HasIndex("WorkflowDefinitionId")
 080                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionId");
 081
 082                    b.HasIndex("WorkflowDefinitionVersionId")
 083                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionVersionId");
 084
 085                    b.ToTable("WorkflowDefinitionLabels", "Elsa");
 086                });
 87#pragma warning restore 612, 618
 088        }
 89    }
 90}