hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20231129033919_Add LeaveTotal to LeaveRequest.cs
2023-11-29 17:28:15 +07:00

29 lines
799 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class AddLeaveTotaltoLeaveRequest : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "LeaveTotal",
table: "LeaveRequests",
type: "int",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LeaveTotal",
table: "LeaveRequests");
}
}
}