using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.LeaveDb { /// public partial class AddLeaveDayused : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "LeaveDays", table: "LeaveBeginnings", type: "double", nullable: false, comment: "จำนวนวันลายกมา", oldClrType: typeof(double), oldType: "double", oldComment: "จำนวนวันลา"); migrationBuilder.AddColumn( name: "LeaveDaysUsed", table: "LeaveBeginnings", type: "double", nullable: false, defaultValue: 0.0, comment: "จำนวนวันลาที่ใช้ไป"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "LeaveDaysUsed", table: "LeaveBeginnings"); migrationBuilder.AlterColumn( name: "LeaveDays", table: "LeaveBeginnings", type: "double", nullable: false, comment: "จำนวนวันลา", oldClrType: typeof(double), oldType: "double", oldComment: "จำนวนวันลายกมา"); } } }