All checks were successful
Build & Deploy Leave Service / build (push) Successful in 1m18s
54 lines
1.8 KiB
C#
54 lines
1.8 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations.LeaveDb
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class add_fields_table_eaveequestpprover : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "OrganizationName",
|
|
table: "LeaveRequestApprovers",
|
|
type: "longtext",
|
|
nullable: false,
|
|
comment: "สังกัด")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PosExecutiveName",
|
|
table: "LeaveRequestApprovers",
|
|
type: "longtext",
|
|
nullable: false,
|
|
comment: "ตำแหน่งทางการบริหาร")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionLevelName",
|
|
table: "LeaveRequestApprovers",
|
|
type: "longtext",
|
|
nullable: false,
|
|
comment: "ประเภทระดับตำแหน่ง")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "OrganizationName",
|
|
table: "LeaveRequestApprovers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PosExecutiveName",
|
|
table: "LeaveRequestApprovers");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionLevelName",
|
|
table: "LeaveRequestApprovers");
|
|
}
|
|
}
|
|
}
|