migrate add ScoreExpireDate
This commit is contained in:
parent
57831420f8
commit
536e7e924d
10 changed files with 3310 additions and 69 deletions
3158
Migrations/20260701102530_update_PeriodExams_add_ScoreExpireDate.Designer.cs
generated
Normal file
3158
Migrations/20260701102530_update_PeriodExams_add_ScoreExpireDate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Recurit.Exam.Service.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class update_PeriodExams_add_ScoreExpireDate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "ScoreExpireDate",
|
||||
table: "PeriodExams",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "วันหมดอายุบัญชี")
|
||||
.Annotation("Relational:ColumnOrder", 6);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ScoreExpireDate",
|
||||
table: "PeriodExams");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue