First Initial
This commit is contained in:
167
Migrations/25630119103244_A1.cs
Normal file
167
Migrations/25630119103244_A1.cs
Normal file
@@ -0,0 +1,167 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user