add field
This commit is contained in:
parent
c704556891
commit
e45cf014b1
11 changed files with 51436 additions and 0 deletions
17099
BMA.EHR.Infrastructure/Migrations/20240212075110_Add Fields IsDate Table.Designer.cs
generated
Normal file
17099
BMA.EHR.Infrastructure/Migrations/20240212075110_Add Fields IsDate Table.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,29 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddFieldsIsDateTable : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsDate",
|
||||
table: "ProfileTrainings",
|
||||
type: "tinyint(1)",
|
||||
nullable: true,
|
||||
comment: "ประเภทช่วงเวลาการศึกษา");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsDate",
|
||||
table: "ProfileTrainings");
|
||||
}
|
||||
}
|
||||
}
|
||||
17102
BMA.EHR.Infrastructure/Migrations/20240212093559_Add Fields IsSendVerified Table.Designer.cs
generated
Normal file
17102
BMA.EHR.Infrastructure/Migrations/20240212093559_Add Fields IsSendVerified Table.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,29 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddFieldsIsSendVerifiedTable : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsSendVerified",
|
||||
table: "Profiles",
|
||||
type: "tinyint(1)",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsSendVerified",
|
||||
table: "Profiles");
|
||||
}
|
||||
}
|
||||
}
|
||||
17106
BMA.EHR.Infrastructure/Migrations/20240212102945_Add Fields IsDate to ProfileHonor Table.Designer.cs
generated
Normal file
17106
BMA.EHR.Infrastructure/Migrations/20240212102945_Add Fields IsDate to ProfileHonor Table.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,51 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddFieldsIsDatetoProfileHonorTable : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "IsDate",
|
||||
table: "ProfileTrainings",
|
||||
type: "tinyint(1)",
|
||||
nullable: true,
|
||||
comment: "ประเภทช่วงเวลา",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "tinyint(1)",
|
||||
oldNullable: true,
|
||||
oldComment: "ประเภทช่วงเวลาการศึกษา");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsDate",
|
||||
table: "ProfileHonors",
|
||||
type: "tinyint(1)",
|
||||
nullable: true,
|
||||
comment: "ประเภทช่วงเวลา");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsDate",
|
||||
table: "ProfileHonors");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "IsDate",
|
||||
table: "ProfileTrainings",
|
||||
type: "tinyint(1)",
|
||||
nullable: true,
|
||||
comment: "ประเภทช่วงเวลาการศึกษา",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "tinyint(1)",
|
||||
oldNullable: true,
|
||||
oldComment: "ประเภทช่วงเวลา");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1185,6 +1185,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Property<bool>("IsProbation")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("IsSendVerified")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<bool>("IsTransfer")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
|
|
@ -3744,6 +3747,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("varchar(2000)")
|
||||
.HasComment("รายละเอียด");
|
||||
|
||||
b.Property<bool?>("IsDate")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("ประเภทช่วงเวลา");
|
||||
|
||||
b.Property<DateTime?>("IssueDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันที่ได้รับ");
|
||||
|
|
@ -5357,6 +5364,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("วันสิ้นสุดการฝึกอบรม/ดูงาน");
|
||||
|
||||
b.Property<bool?>("IsDate")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("ประเภทช่วงเวลา");
|
||||
|
||||
b.Property<string>("LastUpdateFullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue