using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class AddFieldsIsDatetoProfileHonorTable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "IsDate", table: "ProfileTrainings", type: "tinyint(1)", nullable: true, comment: "ประเภทช่วงเวลา", oldClrType: typeof(bool), oldType: "tinyint(1)", oldNullable: true, oldComment: "ประเภทช่วงเวลาการศึกษา"); migrationBuilder.AddColumn( name: "IsDate", table: "ProfileHonors", type: "tinyint(1)", nullable: true, comment: "ประเภทช่วงเวลา"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "IsDate", table: "ProfileHonors"); migrationBuilder.AlterColumn( name: "IsDate", table: "ProfileTrainings", type: "tinyint(1)", nullable: true, comment: "ประเภทช่วงเวลาการศึกษา", oldClrType: typeof(bool), oldType: "tinyint(1)", oldNullable: true, oldComment: "ประเภทช่วงเวลา"); } } }