66 lines
2.4 KiB
C#
66 lines
2.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class addPositionExecutiveOld2 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutiveOld",
|
|
table: "RetirementResigns",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหารเดิม")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutiveOld",
|
|
table: "RetirementResignCancels",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหารเดิม")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutive",
|
|
table: "PlacementProfiles",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหาร")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementProfiles",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ตำแหน่งทางการบริหารเดิม")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutiveOld",
|
|
table: "RetirementResigns");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutiveOld",
|
|
table: "RetirementResignCancels");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutive",
|
|
table: "PlacementProfiles");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PositionExecutiveOld",
|
|
table: "PlacementProfiles");
|
|
}
|
|
}
|
|
}
|