hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20231221062756_Change LeaveTotal to Double.cs
2023-12-21 14:30:10 +07:00

66 lines
2 KiB
C#

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