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

168 lines
5.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
namespace tb320eva.Migrations
{
public partial class A1 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<decimal>(
name: "score",
table: "eva_evaluation_behavior",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "sumary",
table: "eva_evaluation_behavior",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "target_score1",
table: "eva_evaluation_behavior",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "target_score2",
table: "eva_evaluation_behavior",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "target_score3",
table: "eva_evaluation_behavior",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "target_score4",
table: "eva_evaluation_behavior",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "target_score5",
table: "eva_evaluation_behavior",
maxLength: 255,
nullable: true);
migrationBuilder.AlterColumn<string>(
name: "achievement",
table: "eva_evaluation_achievement",
maxLength: 1000,
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AddColumn<decimal>(
name: "score",
table: "eva_evaluation_achievement",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "sumary",
table: "eva_evaluation_achievement",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "target_score1",
table: "eva_evaluation_achievement",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "target_score2",
table: "eva_evaluation_achievement",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "target_score3",
table: "eva_evaluation_achievement",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "target_score4",
table: "eva_evaluation_achievement",
maxLength: 255,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "target_score5",
table: "eva_evaluation_achievement",
maxLength: 255,
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "score",
table: "eva_evaluation_behavior");
migrationBuilder.DropColumn(
name: "sumary",
table: "eva_evaluation_behavior");
migrationBuilder.DropColumn(
name: "target_score1",
table: "eva_evaluation_behavior");
migrationBuilder.DropColumn(
name: "target_score2",
table: "eva_evaluation_behavior");
migrationBuilder.DropColumn(
name: "target_score3",
table: "eva_evaluation_behavior");
migrationBuilder.DropColumn(
name: "target_score4",
table: "eva_evaluation_behavior");
migrationBuilder.DropColumn(
name: "target_score5",
table: "eva_evaluation_behavior");
migrationBuilder.DropColumn(
name: "score",
table: "eva_evaluation_achievement");
migrationBuilder.DropColumn(
name: "sumary",
table: "eva_evaluation_achievement");
migrationBuilder.DropColumn(
name: "target_score1",
table: "eva_evaluation_achievement");
migrationBuilder.DropColumn(
name: "target_score2",
table: "eva_evaluation_achievement");
migrationBuilder.DropColumn(
name: "target_score3",
table: "eva_evaluation_achievement");
migrationBuilder.DropColumn(
name: "target_score4",
table: "eva_evaluation_achievement");
migrationBuilder.DropColumn(
name: "target_score5",
table: "eva_evaluation_achievement");
migrationBuilder.AlterColumn<string>(
name: "achievement",
table: "eva_evaluation_achievement",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldMaxLength: 1000,
oldNullable: true);
}
}
}