hrms-api-backend/BMA.EHR.Infrastructure/Migrations/LeaveDb/20231123033334_add comment user duty time - effective date.cs
Suphonchai Phoonsawat 22d9210416 add table duty time
2023-11-23 10:35:55 +07:00

39 lines
1.2 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
{
/// <inheritdoc />
public partial class addcommentuserdutytimeeffectivedate : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "EffectiveDate",
table: "UserDutyTimes",
type: "datetime(6)",
nullable: true,
comment: "วันที่มีผล",
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldNullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "EffectiveDate",
table: "UserDutyTimes",
type: "datetime(6)",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime(6)",
oldNullable: true,
oldComment: "วันที่มีผล");
}
}
}