hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20240503033648_update table PlacementRecive add dateOfBirth.cs

31 lines
896 B
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablePlacementReciveadddateOfBirth : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "DateOfBirth",
table: "PlacementAppointments",
type: "datetime(6)",
maxLength: 40,
nullable: true,
comment: "วันเกิด");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DateOfBirth",
table: "PlacementAppointments");
}
}
}