Merge branch 'develop' of github.com:Frappet/BMA-EHR-BackEnd into develop
This commit is contained in:
commit
31c21469ec
13 changed files with 3455 additions and 86 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,146 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableDisciplineDirectorscommandnonullable : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Duty",
|
||||
table: "DisciplineInvestigate_Directors",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "หน้าที่",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldComment: "หน้าที่")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "CommandNo",
|
||||
table: "DisciplineInvestigate_Directors",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "เลขที่คำสั่ง",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldComment: "เลขที่คำสั่ง")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Duty",
|
||||
table: "DisciplineDisciplinary_DirectorInvestigates",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "หน้าที่",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldComment: "หน้าที่")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "CommandNo",
|
||||
table: "DisciplineDisciplinary_DirectorInvestigates",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "เลขที่คำสั่ง",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldComment: "เลขที่คำสั่ง")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "DisciplineInvestigate_Directors",
|
||||
keyColumn: "Duty",
|
||||
keyValue: null,
|
||||
column: "Duty",
|
||||
value: "");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Duty",
|
||||
table: "DisciplineInvestigate_Directors",
|
||||
type: "longtext",
|
||||
nullable: false,
|
||||
comment: "หน้าที่",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldNullable: true,
|
||||
oldComment: "หน้าที่")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "DisciplineInvestigate_Directors",
|
||||
keyColumn: "CommandNo",
|
||||
keyValue: null,
|
||||
column: "CommandNo",
|
||||
value: "");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "CommandNo",
|
||||
table: "DisciplineInvestigate_Directors",
|
||||
type: "longtext",
|
||||
nullable: false,
|
||||
comment: "เลขที่คำสั่ง",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldNullable: true,
|
||||
oldComment: "เลขที่คำสั่ง")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "DisciplineDisciplinary_DirectorInvestigates",
|
||||
keyColumn: "Duty",
|
||||
keyValue: null,
|
||||
column: "Duty",
|
||||
value: "");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Duty",
|
||||
table: "DisciplineDisciplinary_DirectorInvestigates",
|
||||
type: "longtext",
|
||||
nullable: false,
|
||||
comment: "หน้าที่",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldNullable: true,
|
||||
oldComment: "หน้าที่")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "DisciplineDisciplinary_DirectorInvestigates",
|
||||
keyColumn: "CommandNo",
|
||||
keyValue: null,
|
||||
column: "CommandNo",
|
||||
value: "");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "CommandNo",
|
||||
table: "DisciplineDisciplinary_DirectorInvestigates",
|
||||
type: "longtext",
|
||||
nullable: false,
|
||||
comment: "เลขที่คำสั่ง",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldNullable: true,
|
||||
oldComment: "เลขที่คำสั่ง")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1005,7 +1005,6 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasAnnotation("Relational:JsonPropertyName", "id");
|
||||
|
||||
b.Property<string>("CommandNo")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เลขที่คำสั่ง");
|
||||
|
||||
|
|
@ -1035,7 +1034,6 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Duty")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("หน้าที่");
|
||||
|
||||
|
|
@ -2056,7 +2054,6 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasAnnotation("Relational:JsonPropertyName", "id");
|
||||
|
||||
b.Property<string>("CommandNo")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เลขที่คำสั่ง");
|
||||
|
||||
|
|
@ -2086,7 +2083,6 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Duty")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("หน้าที่");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue