< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 45
Coverable lines: 45
Total lines: 92
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/Tenants/20250222191016_V3_4.cs

#LineLine coverage
 1using Microsoft.EntityFrameworkCore.Migrations;
 2
 3#nullable disable
 4
 5namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Tenants
 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: "Tenants",
 026                newName: "Tenants",
 027                newSchema: _schema.Schema);
 028        }
 29
 30        /// <inheritdoc />
 31        protected override void Down(MigrationBuilder migrationBuilder)
 32        {
 033            migrationBuilder.RenameTable(
 034                name: "Tenants",
 035                schema: _schema.Schema,
 036                newName: "Tenants");
 037        }
 38    }
 39}

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

#LineLine coverage
 1// <auto-generated />
 2using Elsa.Persistence.EFCore.Modules.Tenants;
 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.Tenants
 11{
 12    [DbContext(typeof(TenantsElsaDbContext))]
 13    [Migration("20250222191016_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.Common.Multitenancy.Tenant", b =>
 025                {
 026                    b.Property<string>("Id")
 027                        .HasColumnType("TEXT");
 028
 029                    b.Property<string>("Configuration")
 030                        .IsRequired()
 031                        .HasColumnType("TEXT");
 032
 033                    b.Property<string>("Name")
 034                        .IsRequired()
 035                        .HasColumnType("TEXT");
 036
 037                    b.Property<string>("TenantId")
 038                        .HasColumnType("TEXT");
 039
 040                    b.HasKey("Id");
 041
 042                    b.HasIndex("Name")
 043                        .HasDatabaseName("IX_Tenant_Name");
 044
 045                    b.HasIndex("TenantId")
 046                        .HasDatabaseName("IX_Tenant_TenantId");
 047
 048                    b.ToTable("Tenants", "Elsa");
 049                });
 50#pragma warning restore 612, 618
 051        }
 52    }
 53}