using System; using Microsoft.EntityFrameworkCore.Migrations; namespace tb320eva.Migrations { public partial class RemoveLimitFrameGroupColumn : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_eva_limit_frame_employee_eva_limit_frame_group_limit_frame_~", table: "eva_limit_frame_employee"); migrationBuilder.DropIndex( name: "IX_eva_limit_frame_employee_limit_frame_group_id", table: "eva_limit_frame_employee"); migrationBuilder.DropColumn( name: "limit_frame_group_id", table: "eva_limit_frame_employee"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "limit_frame_group_id", table: "eva_limit_frame_employee", nullable: true); migrationBuilder.CreateIndex( name: "IX_eva_limit_frame_employee_limit_frame_group_id", table: "eva_limit_frame_employee", column: "limit_frame_group_id"); migrationBuilder.AddForeignKey( name: "FK_eva_limit_frame_employee_eva_limit_frame_group_limit_frame_~", table: "eva_limit_frame_employee", column: "limit_frame_group_id", principalTable: "eva_limit_frame_group", principalColumn: "id", onDelete: ReferentialAction.Restrict); } } }