using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class updatetableplacementprofileaddimage : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ProfileImgId", table: "PlacementProfiles", type: "char(36)", nullable: true, collation: "ascii_general_ci"); migrationBuilder.CreateIndex( name: "IX_PlacementProfiles_ProfileImgId", table: "PlacementProfiles", column: "ProfileImgId"); migrationBuilder.AddForeignKey( name: "FK_PlacementProfiles_Documents_ProfileImgId", table: "PlacementProfiles", column: "ProfileImgId", principalTable: "Documents", principalColumn: "Id"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_PlacementProfiles_Documents_ProfileImgId", table: "PlacementProfiles"); migrationBuilder.DropIndex( name: "IX_PlacementProfiles_ProfileImgId", table: "PlacementProfiles"); migrationBuilder.DropColumn( name: "ProfileImgId", table: "PlacementProfiles"); } } }