hrms-api-backend/BMA.EHR.Infrastructure/Migrations/DisciplineDb/20250417153725_update_table_disciplineresult_add_remark1.cs
moss c89ecf8cda
Some checks failed
release-dev / release-dev (push) Failing after 11s
search กรรมการ
2025-04-17 23:09:37 +07:00

55 lines
1.7 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class update_table_disciplineresult_add_remark1 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "RootDnaId",
table: "DisciplineInvestigates",
type: "char(36)",
nullable: true,
comment: "RootDnaId",
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "RootDnaId",
table: "DisciplineDisciplinarys",
type: "char(36)",
nullable: true,
comment: "RootDnaId",
collation: "ascii_general_ci");
migrationBuilder.AddColumn<Guid>(
name: "RootDnaId",
table: "DisciplineComplaints",
type: "char(36)",
nullable: true,
comment: "RootDnaId",
collation: "ascii_general_ci");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "RootDnaId",
table: "DisciplineInvestigates");
migrationBuilder.DropColumn(
name: "RootDnaId",
table: "DisciplineDisciplinarys");
migrationBuilder.DropColumn(
name: "RootDnaId",
table: "DisciplineComplaints");
}
}
}