using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace BMA.EHR.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class AddFieldsNotetoProfileEducation : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "Note",
                table: "ProfileEducations",
                type: "longtext",
                nullable: true,
                comment: "หมายเหตุ")
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<string>(
                name: "Note",
                table: "ProfileEducationHistorys",
                type: "longtext",
                nullable: true,
                comment: "หมายเหตุ")
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Note",
                table: "ProfileEducations");

            migrationBuilder.DropColumn(
                name: "Note",
                table: "ProfileEducationHistorys");
        }
    }
}
