Merge branch 'develop' into working
This commit is contained in:
commit
73407d3e73
100 changed files with 47619 additions and 47 deletions
11796
BMA.EHR.Infrastructure/Migrations/20230724064919_update Table retire add year.Designer.cs
generated
Normal file
11796
BMA.EHR.Infrastructure/Migrations/20230724064919_update Table retire add year.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,76 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updateTableretireaddyear : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Remove",
|
||||
table: "RetirementProfiles",
|
||||
type: "longtext",
|
||||
nullable: false,
|
||||
comment: "ลบออกจากเกษียญ",
|
||||
oldClrType: typeof(bool),
|
||||
oldType: "tinyint(1)",
|
||||
oldComment: "ลบออกจากเกษียญ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "Year",
|
||||
table: "RetirementPeriods",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
comment: "ปีงบประมาณ");
|
||||
|
||||
// migrationBuilder.AddColumn<DateTime>(
|
||||
// name: "RefCommandDate",
|
||||
// table: "ProfileInsignias",
|
||||
// type: "datetime(6)",
|
||||
// nullable: true,
|
||||
// comment: "เอกสารอ้างอิง (ลงวันที่)");
|
||||
|
||||
// migrationBuilder.AddColumn<string>(
|
||||
// name: "RefCommandNo",
|
||||
// table: "ProfileInsignias",
|
||||
// type: "longtext",
|
||||
// nullable: true,
|
||||
// comment: "เอกสารอ้างอิง (เลขที่คำสั่ง)")
|
||||
// .Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Year",
|
||||
table: "RetirementPeriods");
|
||||
|
||||
// migrationBuilder.DropColumn(
|
||||
// name: "RefCommandDate",
|
||||
// table: "ProfileInsignias");
|
||||
|
||||
// migrationBuilder.DropColumn(
|
||||
// name: "RefCommandNo",
|
||||
// table: "ProfileInsignias");
|
||||
|
||||
migrationBuilder.AlterColumn<bool>(
|
||||
name: "Remove",
|
||||
table: "RetirementProfiles",
|
||||
type: "tinyint(1)",
|
||||
nullable: false,
|
||||
comment: "ลบออกจากเกษียญ",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldComment: "ลบออกจากเกษียญ")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
}
|
||||
}
|
||||
11796
BMA.EHR.Infrastructure/Migrations/20230726050727_update Table placement ExamNumber nullable.Designer.cs
generated
Normal file
11796
BMA.EHR.Infrastructure/Migrations/20230726050727_update Table placement ExamNumber nullable.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,84 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updateTableplacementExamNumbernullable : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "ExamRound",
|
||||
table: "PlacementProfiles",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "จำนวนครั้งที่สมัครสอบ",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldComment: "จำนวนครั้งที่สมัครสอบ");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "ExamNumber",
|
||||
table: "PlacementProfiles",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "ลำดับที่สอบได้",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldComment: "ลำดับที่สอบได้");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "DurationYear",
|
||||
table: "PlacementEducations",
|
||||
type: "int",
|
||||
nullable: true,
|
||||
comment: "ระยะเวลาหลักสูตร",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldComment: "ระยะเวลาหลักสูตร");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "ExamRound",
|
||||
table: "PlacementProfiles",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
comment: "จำนวนครั้งที่สมัครสอบ",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true,
|
||||
oldComment: "จำนวนครั้งที่สมัครสอบ");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "ExamNumber",
|
||||
table: "PlacementProfiles",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
comment: "ลำดับที่สอบได้",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true,
|
||||
oldComment: "ลำดับที่สอบได้");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "DurationYear",
|
||||
table: "PlacementEducations",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
comment: "ระยะเวลาหลักสูตร",
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldNullable: true,
|
||||
oldComment: "ระยะเวลาหลักสูตร");
|
||||
}
|
||||
}
|
||||
}
|
||||
11796
BMA.EHR.Infrastructure/Migrations/20230726095906_update Table placementprofile mobole limit 200.Designer.cs
generated
Normal file
11796
BMA.EHR.Infrastructure/Migrations/20230726095906_update Table placementprofile mobole limit 200.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,78 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updateTableplacementprofilemobolelimit200 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Telephone",
|
||||
table: "PlacementProfiles",
|
||||
type: "varchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true,
|
||||
comment: "โทรศัพท์",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(20)",
|
||||
oldMaxLength: 20,
|
||||
oldNullable: true,
|
||||
oldComment: "โทรศัพท์")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "MobilePhone",
|
||||
table: "PlacementProfiles",
|
||||
type: "varchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true,
|
||||
comment: "โทรศัพท์มือถือ",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(20)",
|
||||
oldMaxLength: 20,
|
||||
oldNullable: true,
|
||||
oldComment: "โทรศัพท์มือถือ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Telephone",
|
||||
table: "PlacementProfiles",
|
||||
type: "varchar(20)",
|
||||
maxLength: 20,
|
||||
nullable: true,
|
||||
comment: "โทรศัพท์",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(200)",
|
||||
oldMaxLength: 200,
|
||||
oldNullable: true,
|
||||
oldComment: "โทรศัพท์")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "MobilePhone",
|
||||
table: "PlacementProfiles",
|
||||
type: "varchar(20)",
|
||||
maxLength: 20,
|
||||
nullable: true,
|
||||
comment: "โทรศัพท์มือถือ",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(200)",
|
||||
oldMaxLength: 200,
|
||||
oldNullable: true,
|
||||
oldComment: "โทรศัพท์มือถือ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
}
|
||||
}
|
||||
11796
BMA.EHR.Infrastructure/Migrations/20230726100447_update Table placementprofile mobile limit 200.Designer.cs
generated
Normal file
11796
BMA.EHR.Infrastructure/Migrations/20230726100447_update Table placementprofile mobile limit 200.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,48 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updateTableplacementprofilemobilelimit200 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "OccupationTelephone",
|
||||
table: "PlacementProfiles",
|
||||
type: "varchar(200)",
|
||||
maxLength: 200,
|
||||
nullable: true,
|
||||
comment: "โทรศัพท์ บริษัท",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(20)",
|
||||
oldMaxLength: 20,
|
||||
oldNullable: true,
|
||||
oldComment: "โทรศัพท์ บริษัท")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "OccupationTelephone",
|
||||
table: "PlacementProfiles",
|
||||
type: "varchar(20)",
|
||||
maxLength: 20,
|
||||
nullable: true,
|
||||
comment: "โทรศัพท์ บริษัท",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "varchar(200)",
|
||||
oldMaxLength: 200,
|
||||
oldNullable: true,
|
||||
oldComment: "โทรศัพท์ บริษัท")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3364,6 +3364,14 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ลงวันที่");
|
||||
|
||||
b.Property<DateTime?>("RefCommandDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("เอกสารอ้างอิง (ลงวันที่)");
|
||||
|
||||
b.Property<string>("RefCommandNo")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เอกสารอ้างอิง (เลขที่คำสั่ง)");
|
||||
|
||||
b.Property<string>("Section")
|
||||
.HasMaxLength(30)
|
||||
.HasColumnType("varchar(30)")
|
||||
|
|
@ -9613,7 +9621,7 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("varchar(1000)")
|
||||
.HasComment("ระยะเวลา");
|
||||
|
||||
b.Property<int>("DurationYear")
|
||||
b.Property<int?>("DurationYear")
|
||||
.HasColumnType("int")
|
||||
.HasComment("ระยะเวลาหลักสูตร");
|
||||
|
||||
|
|
@ -9844,11 +9852,11 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("varchar(200)")
|
||||
.HasComment("อีเมล");
|
||||
|
||||
b.Property<int>("ExamNumber")
|
||||
b.Property<int?>("ExamNumber")
|
||||
.HasColumnType("int")
|
||||
.HasComment("ลำดับที่สอบได้");
|
||||
|
||||
b.Property<int>("ExamRound")
|
||||
b.Property<int?>("ExamRound")
|
||||
.HasColumnType("int")
|
||||
.HasComment("จำนวนครั้งที่สมัครสอบ");
|
||||
|
||||
|
|
@ -9949,8 +9957,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("MobilePhone")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasComment("โทรศัพท์มือถือ");
|
||||
|
||||
b.Property<string>("MotherFirstName")
|
||||
|
|
@ -10003,8 +10011,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasComment("ตำแหน่งอาชีพ");
|
||||
|
||||
b.Property<string>("OccupationTelephone")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasComment("โทรศัพท์ บริษัท");
|
||||
|
||||
b.Property<string>("OccupationType")
|
||||
|
|
@ -10139,8 +10147,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasComment("เอกสารอ้างอิง");
|
||||
|
||||
b.Property<string>("Telephone")
|
||||
.HasMaxLength(20)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("varchar(200)")
|
||||
.HasComment("โทรศัพท์");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
|
@ -10317,6 +10325,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("ประเภท");
|
||||
|
||||
b.Property<int>("Year")
|
||||
.HasColumnType("int")
|
||||
.HasComment("ปีงบประมาณ");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("RetirementPeriods");
|
||||
|
|
@ -10381,8 +10393,9 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุผล");
|
||||
|
||||
b.Property<bool>("Remove")
|
||||
.HasColumnType("tinyint(1)")
|
||||
b.Property<string>("Remove")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ลบออกจากเกษียญ");
|
||||
|
||||
b.Property<Guid>("RetirementPeriodId")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue