< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 92
Coverable lines: 92
Total lines: 143
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/20241212212030_V3_3.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_3 : Migration
 9    {
 10        private readonly Elsa.Persistence.EFCore.IElsaDbContextSchema _schema;
 11
 12        /// <inheritdoc />
 013        public V3_3(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: "TenantId",
 023                table: "WorkflowDefinitionLabels",
 024                type: "TEXT",
 025                nullable: true);
 26
 027            migrationBuilder.AddColumn<string>(
 028                name: "TenantId",
 029                table: "Labels",
 030                type: "TEXT",
 031                nullable: true);
 32
 033            migrationBuilder.CreateIndex(
 034                name: "WorkflowDefinitionLabel_TenantId",
 035                table: "WorkflowDefinitionLabels",
 036                column: "TenantId");
 037        }
 38
 39        /// <inheritdoc />
 40        protected override void Down(MigrationBuilder migrationBuilder)
 41        {
 042            migrationBuilder.DropIndex(
 043                name: "WorkflowDefinitionLabel_TenantId",
 044                table: "WorkflowDefinitionLabels");
 45
 046            migrationBuilder.DropColumn(
 047                name: "TenantId",
 048                table: "WorkflowDefinitionLabels");
 49
 050            migrationBuilder.DropColumn(
 051                name: "TenantId",
 052                table: "Labels");
 053        }
 54    }
 55}

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Sqlite/Migrations/Labels/20241212212030_V3_3.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("20241212212030_V3_3")]
 14    partial class V3_3
 15    {
 16        /// <inheritdoc />
 17        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 18        {
 19#pragma warning disable 612, 618
 020            modelBuilder.HasAnnotation("ProductVersion", "7.0.20");
 21
 022            modelBuilder.Entity("Elsa.Labels.Entities.Label", b =>
 023                {
 024                    b.Property<string>("Id")
 025                        .HasColumnType("TEXT");
 026
 027                    b.Property<string>("Color")
 028                        .HasColumnType("TEXT");
 029
 030                    b.Property<string>("Description")
 031                        .HasColumnType("TEXT");
 032
 033                    b.Property<string>("Name")
 034                        .IsRequired()
 035                        .HasColumnType("TEXT");
 036
 037                    b.Property<string>("NormalizedName")
 038                        .IsRequired()
 039                        .HasColumnType("TEXT");
 040
 041                    b.Property<string>("TenantId")
 042                        .HasColumnType("TEXT");
 043
 044                    b.HasKey("Id");
 045
 046                    b.ToTable("Labels");
 047                });
 48
 049            modelBuilder.Entity("Elsa.Labels.Entities.WorkflowDefinitionLabel", b =>
 050                {
 051                    b.Property<string>("Id")
 052                        .HasColumnType("TEXT");
 053
 054                    b.Property<string>("LabelId")
 055                        .IsRequired()
 056                        .HasColumnType("TEXT");
 057
 058                    b.Property<string>("TenantId")
 059                        .HasColumnType("TEXT");
 060
 061                    b.Property<string>("WorkflowDefinitionId")
 062                        .IsRequired()
 063                        .HasColumnType("TEXT");
 064
 065                    b.Property<string>("WorkflowDefinitionVersionId")
 066                        .IsRequired()
 067                        .HasColumnType("TEXT");
 068
 069                    b.HasKey("Id");
 070
 071                    b.HasIndex("LabelId")
 072                        .HasDatabaseName("WorkflowDefinitionLabel_LabelId");
 073
 074                    b.HasIndex("TenantId")
 075                        .HasDatabaseName("WorkflowDefinitionLabel_TenantId");
 076
 077                    b.HasIndex("WorkflowDefinitionId")
 078                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionId");
 079
 080                    b.HasIndex("WorkflowDefinitionVersionId")
 081                        .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionVersionId");
 082
 083                    b.ToTable("WorkflowDefinitionLabels");
 084                });
 85#pragma warning restore 612, 618
 086        }
 87    }
 88}