using System; using Microsoft.EntityFrameworkCore.Migrations; namespace tb320eva.Migrations { public partial class new02 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "supervisor1", table: "eva_create_evaluation_detail", nullable: true); migrationBuilder.AddColumn( name: "supervisor1_date", table: "eva_create_evaluation_detail", nullable: true); migrationBuilder.AddColumn( name: "supervisor1_remark", table: "eva_create_evaluation_detail", maxLength: 1000, nullable: true); migrationBuilder.AddColumn( name: "supervisor1_result", table: "eva_create_evaluation_detail", maxLength: 1, nullable: true); migrationBuilder.AddColumn( name: "supervisor2", table: "eva_create_evaluation_detail", nullable: true); migrationBuilder.AddColumn( name: "supervisor2_date", table: "eva_create_evaluation_detail", nullable: true); migrationBuilder.AddColumn( name: "supervisor2_remark", table: "eva_create_evaluation_detail", maxLength: 1000, nullable: true); migrationBuilder.AddColumn( name: "supervisor2_result", table: "eva_create_evaluation_detail", maxLength: 1, nullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "supervisor1", table: "eva_create_evaluation_detail"); migrationBuilder.DropColumn( name: "supervisor1_date", table: "eva_create_evaluation_detail"); migrationBuilder.DropColumn( name: "supervisor1_remark", table: "eva_create_evaluation_detail"); migrationBuilder.DropColumn( name: "supervisor1_result", table: "eva_create_evaluation_detail"); migrationBuilder.DropColumn( name: "supervisor2", table: "eva_create_evaluation_detail"); migrationBuilder.DropColumn( name: "supervisor2_date", table: "eva_create_evaluation_detail"); migrationBuilder.DropColumn( name: "supervisor2_remark", table: "eva_create_evaluation_detail"); migrationBuilder.DropColumn( name: "supervisor2_result", table: "eva_create_evaluation_detail"); } } }