< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 73
Coverable lines: 73
Total lines: 124
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.PostgreSql/Migrations/Labels/20250222190956_V3_4.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace Elsa.Persistence.EFCore.PostgreSql.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        {
 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.PostgreSql/Migrations/Labels/20250222190956_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;
 7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 8
 9#nullable disable
 10
 11namespace Elsa.Persistence.EFCore.PostgreSql.Migrations.Labels
 12{
 13    [DbContext(typeof(LabelsElsaDbContext))]
 14    [Migration("20250222190956_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")
 024                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 25
 026            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 27
 028            modelBuilder.Entity("Elsa.Labels.Entities.Label", b =>
 029                {
 030                    b.Property<string>("Id")
 031                        .HasColumnType("text");
 032
 033                    b.Property<string>("Color")
 034                        .HasColumnType("text");
 035
 036                    b.Property<string>("Description")
 037                        .HasColumnType("text");
 038
 039                    b.Property<string>("Name")
 040                        .IsRequired()
 041                        .HasColumnType("text");
 042
 043                    b.Property<string>("NormalizedName")
 044                        .IsRequired()
 045                        .HasColumnType("text");
 046
 047                    b.Property<string>("TenantId")
 048                        .HasColumnType("text");
 049
 050                    b.HasKey("Id");
 051
 052                    b.ToTable("Labels", "Elsa");
 053                });
 54
 055            modelBuilder.Entity("Elsa.Labels.Entities.WorkflowDefinitionLabel", b =>
 056                {
 057                    b.Property<string>("Id")
 058                        .HasColumnType("text");
 059
 060                    b.Property<string>("LabelId")
 061                        .IsRequired()
 062                        .HasColumnType("text");
 063
 064                    b.Property<string>("TenantId")
 065                        .HasColumnType("text");
 066
 067                    b.Property<string>("WorkflowDefinitionId")
 068                        .IsRequired()
 069                        .HasColumnType("text");
 070
 071                    b.Property<string>("WorkflowDefinitionVersionId")
 072                        .IsRequired()
 073                        .HasColumnType("text");
 074
 075                    b.HasKey("Id");
 076
 077                    b.HasIndex("LabelId")
 078                        .HasDatabaseName("WorkflowDefinitionLabel_LabelId");
 079
 080                    b.HasIndex("TenantId")
 081                        .HasDatabaseName("WorkflowDefinitionLabel_TenantId");
 082
 083                    b.HasIndex("WorkflowDefinitionId")
 084                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionId");
 085
 086                    b.HasIndex("WorkflowDefinitionVersionId")
 087                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionVersionId");
 088
 089                    b.ToTable("WorkflowDefinitionLabels", "Elsa");
 090                });
 91#pragma warning restore 612, 618
 092        }
 93    }
 94}