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