hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20240301032609_Add Fields Note to ProfileInsignia.cs
2024-03-01 11:12:15 +07:00

42 lines
1.3 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddFieldsNotetoProfileInsignia : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Note",
table: "ProfileInsignias",
type: "longtext",
nullable: true,
comment: "หมายเหตุ")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Note",
table: "ProfileInsigniaHistorys",
type: "longtext",
nullable: true,
comment: "หมายเหตุ")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Note",
table: "ProfileInsignias");
migrationBuilder.DropColumn(
name: "Note",
table: "ProfileInsigniaHistorys");
}
}
}