using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.LeaveDb { /// public partial class ChangeField : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "LeaveDaysUsed", table: "LeaveBeginnings", type: "double", nullable: true, comment: "จำนวนวันลาที่ใช้ไป", oldClrType: typeof(double), oldType: "double", oldComment: "จำนวนวันลาที่ใช้ไป"); migrationBuilder.AlterColumn( name: "LeaveCount", table: "LeaveBeginnings", type: "int", nullable: true, comment: "จำนวนครั้งที่ลาสะสม", oldClrType: typeof(int), oldType: "int", oldComment: "จำนวนครั้งที่ลาสะสม"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "LeaveDaysUsed", table: "LeaveBeginnings", type: "double", nullable: false, defaultValue: 0.0, comment: "จำนวนวันลาที่ใช้ไป", oldClrType: typeof(double), oldType: "double", oldNullable: true, oldComment: "จำนวนวันลาที่ใช้ไป"); migrationBuilder.AlterColumn( name: "LeaveCount", table: "LeaveBeginnings", type: "int", nullable: false, defaultValue: 0, comment: "จำนวนครั้งที่ลาสะสม", oldClrType: typeof(int), oldType: "int", oldNullable: true, oldComment: "จำนวนครั้งที่ลาสะสม"); } } }