using System; using Microsoft.EntityFrameworkCore.Migrations; namespace tb320eva.Migrations { public partial class AddEvaLog : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "eva_create_evaluation_detail_history", columns: table => new { id = table.Column(nullable: false), created = table.Column(nullable: false), updated = table.Column(nullable: false), isActive = table.Column(nullable: false), evaluation_detail_id = table.Column(nullable: true), action_dt = table.Column(nullable: true), action_detail = table.Column(maxLength: 4000, nullable: true), action_emp_id = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_eva_create_evaluation_detail_history", x => x.id); table.ForeignKey( name: "FK_eva_create_evaluation_detail_history_eva_create_evaluation_~", column: x => x.evaluation_detail_id, principalTable: "eva_create_evaluation_detail", principalColumn: "id", onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateIndex( name: "IX_eva_create_evaluation_detail_history_evaluation_detail_id", table: "eva_create_evaluation_detail_history", column: "evaluation_detail_id"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "eva_create_evaluation_detail_history"); } } }