Files
hrm_eva/Migrations/25630211215013_AddSummary01.cs
Nakorn Rientrakrunchai 8b98125e49 First Initial
2020-02-20 15:02:39 +07:00

160 lines
5.6 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
namespace tb320eva.Migrations
{
public partial class AddSummary01 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<decimal>(
name: "Final_summary_chief",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "Final_summary_competency_chief",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "Final_summary_competency_supervisor",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "Final_summary_supervisor",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "achievement_chief",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "achievement_supervisor",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "competency_chief",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "competency_supervisor",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "level_score_chief",
table: "eva_create_evaluation_detail",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "level_score_supervisor",
table: "eva_create_evaluation_detail",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "score_chief",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "score_supervisor",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "total_summary_chief",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "total_summary_competency_chief",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "total_summary_competency_supervisor",
table: "eva_create_evaluation_detail",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "total_summary_supervisor",
table: "eva_create_evaluation_detail",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Final_summary_chief",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "Final_summary_competency_chief",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "Final_summary_competency_supervisor",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "Final_summary_supervisor",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "achievement_chief",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "achievement_supervisor",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "competency_chief",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "competency_supervisor",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "level_score_chief",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "level_score_supervisor",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "score_chief",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "score_supervisor",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "total_summary_chief",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "total_summary_competency_chief",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "total_summary_competency_supervisor",
table: "eva_create_evaluation_detail");
migrationBuilder.DropColumn(
name: "total_summary_supervisor",
table: "eva_create_evaluation_detail");
}
}
}