update code

This commit is contained in:
Nakorn Rientrakrunchai
2021-03-03 12:28:50 +07:00
parent ad14f4f664
commit 23e68366bb
43 changed files with 2650 additions and 777 deletions

View File

@@ -0,0 +1,89 @@
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<decimal>(
name: "limit_frame_005_total",
table: "eva_limit_frame_plan",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "limit_frame_005_total_rounded",
table: "eva_limit_frame_plan",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "remark",
table: "eva_limit_frame_group",
maxLength: 4000,
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "cost_of_living",
table: "eva_limit_frame_employee",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "level_text",
table: "eva_limit_frame_employee",
maxLength: 1000,
nullable: true);
migrationBuilder.AddColumn<string>(
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<int>(
name: "level_id",
table: "eva_limit_frame_employee",
nullable: true);
}
}
}