67 lines
2.3 KiB
C#
67 lines
2.3 KiB
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
public partial class update_Tables_add_posExecutiveId : Migration
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.AddColumn<string>(
|
|||
|
|
name: "posExecutiveId",
|
|||
|
|
table: "RetirementOthers",
|
|||
|
|
type: "longtext",
|
|||
|
|
nullable: true,
|
|||
|
|
comment: "id ตำแหน่งทางการบริหาร")
|
|||
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|||
|
|
|
|||
|
|
migrationBuilder.AddColumn<string>(
|
|||
|
|
name: "posExecutiveId",
|
|||
|
|
table: "PlacementReceives",
|
|||
|
|
type: "longtext",
|
|||
|
|
nullable: true,
|
|||
|
|
comment: "id ตำแหน่งทางการบริหาร")
|
|||
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|||
|
|
|
|||
|
|
migrationBuilder.AddColumn<string>(
|
|||
|
|
name: "posExecutiveId",
|
|||
|
|
table: "PlacementProfiles",
|
|||
|
|
type: "longtext",
|
|||
|
|
nullable: true,
|
|||
|
|
comment: "id ตำแหน่งทางการบริหาร")
|
|||
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|||
|
|
|
|||
|
|
migrationBuilder.AddColumn<string>(
|
|||
|
|
name: "posExecutiveId",
|
|||
|
|
table: "PlacementAppointments",
|
|||
|
|
type: "longtext",
|
|||
|
|
nullable: true,
|
|||
|
|
comment: "id ตำแหน่งทางการบริหาร")
|
|||
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.DropColumn(
|
|||
|
|
name: "posExecutiveId",
|
|||
|
|
table: "RetirementOthers");
|
|||
|
|
|
|||
|
|
migrationBuilder.DropColumn(
|
|||
|
|
name: "posExecutiveId",
|
|||
|
|
table: "PlacementReceives");
|
|||
|
|
|
|||
|
|
migrationBuilder.DropColumn(
|
|||
|
|
name: "posExecutiveId",
|
|||
|
|
table: "PlacementProfiles");
|
|||
|
|
|
|||
|
|
migrationBuilder.DropColumn(
|
|||
|
|
name: "posExecutiveId",
|
|||
|
|
table: "PlacementAppointments");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|