hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20231123033051_add user duty time - effective date.cs

30 lines
799 B
C#
Raw Normal View History

2023-11-23 10:35:55 +07:00
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class adduserdutytimeeffectivedate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "EffectiveDate",
table: "UserDutyTimes",
type: "datetime(6)",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EffectiveDate",
table: "UserDutyTimes");
}
}
}