Removed ValueTask generally where not needed
Removed relationships from audit log
This commit is contained in:
+2224
File diff suppressed because it is too large
Load Diff
+59
@@ -0,0 +1,59 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PostFundManagement.Infrastructure.Database.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class RemovedRelationshipsFromAuditLog : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_AuditLogs_Tenants_TenantId",
|
||||
table: "AuditLogs");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_AuditLogs_Users_PerformedBy",
|
||||
table: "AuditLogs");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_AuditLogs_PerformedBy",
|
||||
table: "AuditLogs");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_AuditLogs_TenantId",
|
||||
table: "AuditLogs");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_AuditLogs_PerformedBy",
|
||||
table: "AuditLogs",
|
||||
column: "PerformedBy");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_AuditLogs_TenantId",
|
||||
table: "AuditLogs",
|
||||
column: "TenantId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_AuditLogs_Tenants_TenantId",
|
||||
table: "AuditLogs",
|
||||
column: "TenantId",
|
||||
principalTable: "Tenants",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_AuditLogs_Users_PerformedBy",
|
||||
table: "AuditLogs",
|
||||
column: "PerformedBy",
|
||||
principalTable: "Users",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
}
|
||||
}
|
||||
}
|
||||
-22
@@ -133,10 +133,6 @@ namespace PostFundManagement.Infrastructure.Database.Migrations
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("PerformedBy");
|
||||
|
||||
b.HasIndex("TenantId");
|
||||
|
||||
b.ToTable("AuditLogs", (string)null);
|
||||
});
|
||||
|
||||
@@ -1495,24 +1491,6 @@ namespace PostFundManagement.Infrastructure.Database.Migrations
|
||||
b.Navigation("Updator");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PostFundManagement.Domain.Entities.AuditLog", b =>
|
||||
{
|
||||
b.HasOne("PostFundManagement.Domain.Entities.User", "Performer")
|
||||
.WithMany()
|
||||
.HasForeignKey("PerformedBy")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("PostFundManagement.Domain.Entities.Tenant", "Tenant")
|
||||
.WithMany()
|
||||
.HasForeignKey("TenantId")
|
||||
.OnDelete(DeleteBehavior.NoAction);
|
||||
|
||||
b.Navigation("Performer");
|
||||
|
||||
b.Navigation("Tenant");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("PostFundManagement.Domain.Entities.Award", b =>
|
||||
{
|
||||
b.HasOne("PostFundManagement.Domain.Entities.User", "Approver")
|
||||
|
||||
Reference in New Issue
Block a user