using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb { /// public partial class updatetableDisciplineDisciplinarysaddStatusDiscard : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "CommandTypeDiscardId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates", type: "char(36)", nullable: true, comment: "ประเภทออกคำสั่งงดโทด", collation: "ascii_general_ci"); migrationBuilder.AddColumn( name: "StatusDiscard", table: "DisciplineDisciplinary_ProfileComplaintInvestigates", type: "longtext", nullable: true, comment: "สถานะออกคำสั่งงดโทด") .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "CommandTypeDiscardId", table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); migrationBuilder.DropColumn( name: "StatusDiscard", table: "DisciplineDisciplinary_ProfileComplaintInvestigates"); } } }