using Microsoft.EntityFrameworkCore.Migrations; namespace tb320eva.Migrations { public partial class UpDateLimitFrameSchema : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "level_id", table: "eva_limit_frame_employee"); migrationBuilder.RenameColumn( name: "position_id", table: "eva_limit_frame_employee", newName: "order_of_data"); migrationBuilder.AddColumn( name: "limit_frame_005_total", table: "eva_limit_frame_plan", nullable: true); migrationBuilder.AddColumn( name: "limit_frame_005_total_rounded", table: "eva_limit_frame_plan", nullable: true); migrationBuilder.AddColumn( name: "remark", table: "eva_limit_frame_group", maxLength: 4000, nullable: true); migrationBuilder.AddColumn( name: "cost_of_living", table: "eva_limit_frame_employee", nullable: true); migrationBuilder.AddColumn( name: "level_text", table: "eva_limit_frame_employee", maxLength: 1000, nullable: true); migrationBuilder.AddColumn( name: "position_text", table: "eva_limit_frame_employee", maxLength: 1000, nullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "limit_frame_005_total", table: "eva_limit_frame_plan"); migrationBuilder.DropColumn( name: "limit_frame_005_total_rounded", table: "eva_limit_frame_plan"); migrationBuilder.DropColumn( name: "remark", table: "eva_limit_frame_group"); migrationBuilder.DropColumn( name: "cost_of_living", table: "eva_limit_frame_employee"); migrationBuilder.DropColumn( name: "level_text", table: "eva_limit_frame_employee"); migrationBuilder.DropColumn( name: "position_text", table: "eva_limit_frame_employee"); migrationBuilder.RenameColumn( name: "order_of_data", table: "eva_limit_frame_employee", newName: "position_id"); migrationBuilder.AddColumn( name: "level_id", table: "eva_limit_frame_employee", nullable: true); } } }