using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class updatetableplacementaddshortname : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "PosNumber", table: "PlacementProfiles", type: "int", nullable: true, comment: "ชื่อตำแหน่งเลขที่"); migrationBuilder.AddColumn( name: "PosPath", table: "PlacementProfiles", type: "longtext", nullable: true, comment: "ชื่อตำแหน่ง") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "orgTreeShortName", table: "PlacementProfiles", type: "longtext", nullable: true, comment: "ชื่อย่อหน่วยงาน") .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "organizationName", table: "PlacementProfiles", type: "longtext", nullable: true, comment: "ชื่อหน่วยงาน") .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "PosNumber", table: "PlacementProfiles"); migrationBuilder.DropColumn( name: "PosPath", table: "PlacementProfiles"); migrationBuilder.DropColumn( name: "orgTreeShortName", table: "PlacementProfiles"); migrationBuilder.DropColumn( name: "organizationName", table: "PlacementProfiles"); } } }