using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class updatetablePlacementReceivesremoveprofile : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_PlacementReceives_Profiles_ProfileId", table: "PlacementReceives"); migrationBuilder.DropIndex( name: "IX_PlacementReceives_ProfileId", table: "PlacementReceives"); migrationBuilder.DropColumn( name: "ProfileId", table: "PlacementReceives"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ProfileId", table: "PlacementReceives", type: "char(36)", nullable: false, defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), collation: "ascii_general_ci"); migrationBuilder.CreateIndex( name: "IX_PlacementReceives_ProfileId", table: "PlacementReceives", column: "ProfileId"); migrationBuilder.AddForeignKey( name: "FK_PlacementReceives_Profiles_ProfileId", table: "PlacementReceives", column: "ProfileId", principalTable: "Profiles", principalColumn: "Id", onDelete: ReferentialAction.Cascade); } } }