Files
hrm_eva/Migrations/25640302141103_UpDateLimitFrameSchema.cs
Nakorn Rientrakrunchai 23e68366bb update code
2021-03-03 12:28:50 +07:00

90 lines
2.9 KiB
C#

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);
}
}
}