hrms-api-recruit/Migrations/20230428041945_Change import detail Field.cs

45 lines
1.5 KiB
C#
Raw Normal View History

2023-04-28 11:23:42 +07:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recruit.Service.Migrations
{
/// <inheritdoc />
public partial class ChangeimportdetailField : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Detail",
table: "RecruitImports",
type: "longtext",
nullable: true,
comment: "รายละเอียด",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true,
oldComment: "รายละเอียด")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Detail",
table: "RecruitImports",
type: "text",
nullable: true,
comment: "รายละเอียด",
oldClrType: typeof(string),
oldType: "longtext",
oldNullable: true,
oldComment: "รายละเอียด")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
}
}