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