using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class addtableRetirementQuestionnaireQuestion1 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Comment", table: "RetirementQuestions", type: "longtext", nullable: true, comment: "ความคิดเห็น") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "Score1", table: "RetirementQuestions", type: "int", nullable: true, comment: "คะแนนข้อ 1"); migrationBuilder.AddColumn( name: "Score10", table: "RetirementQuestions", type: "int", nullable: true, comment: "คะแนนข้อ 10"); migrationBuilder.AddColumn( name: "Score2", table: "RetirementQuestions", type: "int", nullable: true, comment: "คะแนนข้อ 2"); migrationBuilder.AddColumn( name: "Score3", table: "RetirementQuestions", type: "int", nullable: true, comment: "คะแนนข้อ 3"); migrationBuilder.AddColumn( name: "Score4", table: "RetirementQuestions", type: "int", nullable: true, comment: "คะแนนข้อ 4"); migrationBuilder.AddColumn( name: "Score5", table: "RetirementQuestions", type: "int", nullable: true, comment: "คะแนนข้อ 5"); migrationBuilder.AddColumn( name: "Score6", table: "RetirementQuestions", type: "int", nullable: true, comment: "คะแนนข้อ 6"); migrationBuilder.AddColumn( name: "Score7", table: "RetirementQuestions", type: "int", nullable: true, comment: "คะแนนข้อ 7"); migrationBuilder.AddColumn( name: "Score8", table: "RetirementQuestions", type: "int", nullable: true, comment: "คะแนนข้อ 8"); migrationBuilder.AddColumn( name: "Score9", table: "RetirementQuestions", type: "int", nullable: true, comment: "คะแนนข้อ 9"); migrationBuilder.AddColumn( name: "ScoreTotal", table: "RetirementQuestions", type: "int", nullable: true, comment: "คะแนนรวม"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Comment", table: "RetirementQuestions"); migrationBuilder.DropColumn( name: "Score1", table: "RetirementQuestions"); migrationBuilder.DropColumn( name: "Score10", table: "RetirementQuestions"); migrationBuilder.DropColumn( name: "Score2", table: "RetirementQuestions"); migrationBuilder.DropColumn( name: "Score3", table: "RetirementQuestions"); migrationBuilder.DropColumn( name: "Score4", table: "RetirementQuestions"); migrationBuilder.DropColumn( name: "Score5", table: "RetirementQuestions"); migrationBuilder.DropColumn( name: "Score6", table: "RetirementQuestions"); migrationBuilder.DropColumn( name: "Score7", table: "RetirementQuestions"); migrationBuilder.DropColumn( name: "Score8", table: "RetirementQuestions"); migrationBuilder.DropColumn( name: "Score9", table: "RetirementQuestions"); migrationBuilder.DropColumn( name: "ScoreTotal", table: "RetirementQuestions"); } } }