Add Field to ProfileSAlary

This commit is contained in:
Suphonchai Phoonsawat 2023-08-08 10:35:48 +07:00
parent 1a7be19e33
commit aff4dcd38d
6 changed files with 12762 additions and 1 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,42 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddfieldtoProfileSalaryTable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "CommandNo",
table: "ProfileSalaries",
type: "longtext",
nullable: false,
comment: "เลขที่คำสั่ง")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "CommandTypeName",
table: "ProfileSalaries",
type: "longtext",
nullable: false,
comment: "ประเภทคำสั่ง")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CommandNo",
table: "ProfileSalaries");
migrationBuilder.DropColumn(
name: "CommandTypeName",
table: "ProfileSalaries");
}
}
}

View file

@ -4403,6 +4403,16 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("double")
.HasComment("เงินเดือน");
b.Property<string>("CommandNo")
.IsRequired()
.HasColumnType("longtext")
.HasComment("เลขที่คำสั่ง");
b.Property<string>("CommandTypeName")
.IsRequired()
.HasColumnType("longtext")
.HasComment("ประเภทคำสั่ง");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)