Add Field to ProfileSAlary
This commit is contained in:
parent
1a7be19e33
commit
aff4dcd38d
6 changed files with 12762 additions and 1 deletions
12693
BMA.EHR.Infrastructure/Migrations/20230808033217_Add field to ProfileSalary Table.Designer.cs
generated
Normal file
12693
BMA.EHR.Infrastructure/Migrations/20230808033217_Add field to ProfileSalary Table.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue