update code
This commit is contained in:
89
Migrations/25640302141103_UpDateLimitFrameSchema.cs
Normal file
89
Migrations/25640302141103_UpDateLimitFrameSchema.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user