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

29 lines
789 B
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class AddLeaveLasttoLeaveRequest : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "LeaveLast",
table: "LeaveRequests",
type: "datetime(6)",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LeaveLast",
table: "LeaveRequests");
}
}
}