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

40 lines
1.2 KiB
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 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: "วันที่มีผล");
}
}
}