Addd migrations fro Typo
This commit is contained in:
parent
999b2f06e0
commit
d4b2d6025d
3007
Marco.Pms.DataAccess/Migrations/20250519053019_Fixed_Typo_Of_ColumnName.Designer.cs
generated
Normal file
3007
Marco.Pms.DataAccess/Migrations/20250519053019_Fixed_Typo_Of_ColumnName.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,64 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Marco.Pms.DataAccess.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class Fixed_Typo_Of_ColumnName : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_ContactTagMappings_ContactTagMasters_ContactTagId",
|
||||||
|
table: "ContactTagMappings");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<Guid>(
|
||||||
|
name: "ContactTagId",
|
||||||
|
table: "ContactTagMappings",
|
||||||
|
type: "char(36)",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
||||||
|
collation: "ascii_general_ci",
|
||||||
|
oldClrType: typeof(Guid),
|
||||||
|
oldType: "char(36)",
|
||||||
|
oldNullable: true)
|
||||||
|
.OldAnnotation("Relational:Collation", "ascii_general_ci");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_ContactTagMappings_ContactTagMasters_ContactTagId",
|
||||||
|
table: "ContactTagMappings",
|
||||||
|
column: "ContactTagId",
|
||||||
|
principalTable: "ContactTagMasters",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropForeignKey(
|
||||||
|
name: "FK_ContactTagMappings_ContactTagMasters_ContactTagId",
|
||||||
|
table: "ContactTagMappings");
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<Guid>(
|
||||||
|
name: "ContactTagId",
|
||||||
|
table: "ContactTagMappings",
|
||||||
|
type: "char(36)",
|
||||||
|
nullable: true,
|
||||||
|
collation: "ascii_general_ci",
|
||||||
|
oldClrType: typeof(Guid),
|
||||||
|
oldType: "char(36)")
|
||||||
|
.OldAnnotation("Relational:Collation", "ascii_general_ci");
|
||||||
|
|
||||||
|
migrationBuilder.AddForeignKey(
|
||||||
|
name: "FK_ContactTagMappings_ContactTagMasters_ContactTagId",
|
||||||
|
table: "ContactTagMappings",
|
||||||
|
column: "ContactTagId",
|
||||||
|
principalTable: "ContactTagMasters",
|
||||||
|
principalColumn: "Id");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -510,7 +510,7 @@ namespace Marco.Pms.DataAccess.Migrations
|
|||||||
b.Property<Guid>("ContactId")
|
b.Property<Guid>("ContactId")
|
||||||
.HasColumnType("char(36)");
|
.HasColumnType("char(36)");
|
||||||
|
|
||||||
b.Property<Guid?>("ContactTagId")
|
b.Property<Guid>("ContactTagId")
|
||||||
.HasColumnType("char(36)");
|
.HasColumnType("char(36)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
@ -2507,7 +2507,9 @@ namespace Marco.Pms.DataAccess.Migrations
|
|||||||
|
|
||||||
b.HasOne("Marco.Pms.Model.Directory.ContactTagMaster", "ContactTag")
|
b.HasOne("Marco.Pms.Model.Directory.ContactTagMaster", "ContactTag")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("ContactTagId");
|
.HasForeignKey("ContactTagId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
b.Navigation("Contact");
|
b.Navigation("Contact");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user