using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations.LeaveDb { /// public partial class ChangeLeaveTotaltoDouble : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "RestDayOldTotal", table: "LeaveRequests", type: "double", nullable: false, oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "RestDayCurrentTotal", table: "LeaveRequests", type: "double", nullable: false, oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "LeaveTotal", table: "LeaveRequests", type: "double", nullable: false, oldClrType: typeof(int), oldType: "int"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "RestDayOldTotal", table: "LeaveRequests", type: "int", nullable: false, oldClrType: typeof(double), oldType: "double"); migrationBuilder.AlterColumn( name: "RestDayCurrentTotal", table: "LeaveRequests", type: "int", nullable: false, oldClrType: typeof(double), oldType: "double"); migrationBuilder.AlterColumn( name: "LeaveTotal", table: "LeaveRequests", type: "int", nullable: false, oldClrType: typeof(double), oldType: "double"); } } }