using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace BMA.EHR.Recurit.Exam.Service.Migrations
{
    /// <inheritdoc />
    public partial class Updatetableeducationscroetofloat : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<float>(
                name: "Scores",
                table: "Educations",
                type: "float",
                maxLength: 10,
                nullable: false,
                comment: "คะแนนเฉลี่ยตลอดหลักสูตร",
                oldClrType: typeof(int),
                oldType: "int",
                oldMaxLength: 10,
                oldComment: "คะแนนเฉลี่ยตลอดหลักสูตร");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "Scores",
                table: "Educations",
                type: "int",
                maxLength: 10,
                nullable: false,
                comment: "คะแนนเฉลี่ยตลอดหลักสูตร",
                oldClrType: typeof(float),
                oldType: "float",
                oldMaxLength: 10,
                oldComment: "คะแนนเฉลี่ยตลอดหลักสูตร");
        }
    }
}
