47 lines
2.0 KiB
C#
47 lines
2.0 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace tb320eva.Migrations
|
|
{
|
|
public partial class Addachievement_detail : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "eva_evaluation_achievement_detail",
|
|
columns: table => new
|
|
{
|
|
id = table.Column<Guid>(nullable: false),
|
|
created = table.Column<DateTime>(nullable: false),
|
|
updated = table.Column<DateTime>(nullable: false),
|
|
isActive = table.Column<bool>(nullable: false),
|
|
create_evaluation_detail_id = table.Column<int>(nullable: true),
|
|
achievement_id = table.Column<int>(nullable: true),
|
|
achievement_detail = table.Column<string>(maxLength: 16000, nullable: true),
|
|
achievement_order = table.Column<int>(nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_eva_evaluation_achievement_detail", x => x.id);
|
|
table.ForeignKey(
|
|
name: "FK_eva_evaluation_achievement_detail_eva_create_evaluation_det~",
|
|
column: x => x.create_evaluation_detail_id,
|
|
principalTable: "eva_create_evaluation_detail",
|
|
principalColumn: "id",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_eva_evaluation_achievement_detail_create_evaluation_detail_~",
|
|
table: "eva_evaluation_achievement_detail",
|
|
column: "create_evaluation_detail_id");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "eva_evaluation_achievement_detail");
|
|
}
|
|
}
|
|
}
|