32 lines
896 B
C#
32 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");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|