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

39 lines
1.1 KiB
C#

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