using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb { /// public partial class updatetableDisciplineDisciplinarysaddIsSuspend1 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "IsReport", table: "DisciplineInvestigate_ProfileComplaints", type: "longtext", nullable: true, comment: "ส่งไปยุติเรื่อง", oldClrType: typeof(bool), oldType: "tinyint(1)", oldComment: "ส่งไปยุติเรื่อง") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "IsSuspend", table: "DisciplineDisciplinary_ProfileComplaintInvestigates", type: "longtext", nullable: true, comment: "ส่งไปพักราชการ", oldClrType: typeof(bool), oldType: "tinyint(1)", oldComment: "ส่งไปพักราชการ") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "IsReport", table: "DisciplineDisciplinary_ProfileComplaintInvestigates", type: "longtext", nullable: true, comment: "ส่งไปยุติเรื่อง", oldClrType: typeof(bool), oldType: "tinyint(1)", oldComment: "ส่งไปยุติเรื่อง") .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "IsReport", table: "DisciplineInvestigate_ProfileComplaints", type: "tinyint(1)", nullable: false, defaultValue: false, comment: "ส่งไปยุติเรื่อง", oldClrType: typeof(string), oldType: "longtext", oldNullable: true, oldComment: "ส่งไปยุติเรื่อง") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "IsSuspend", table: "DisciplineDisciplinary_ProfileComplaintInvestigates", type: "tinyint(1)", nullable: false, defaultValue: false, comment: "ส่งไปพักราชการ", oldClrType: typeof(string), oldType: "longtext", oldNullable: true, oldComment: "ส่งไปพักราชการ") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "IsReport", table: "DisciplineDisciplinary_ProfileComplaintInvestigates", type: "tinyint(1)", nullable: false, defaultValue: false, comment: "ส่งไปยุติเรื่อง", oldClrType: typeof(string), oldType: "longtext", oldNullable: true, oldComment: "ส่งไปยุติเรื่อง") .OldAnnotation("MySql:CharSet", "utf8mb4"); } } }