hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20231117102057_create table DisciplineComplaint.cs

122 lines
5.8 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class createtableDisciplineComplaint : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "InsigniaTypes",
type: "varchar(50)",
maxLength: 50,
nullable: false,
comment: "ชื่อประเภทเครื่องราช",
oldClrType: typeof(string),
oldType: "varchar(50)",
oldMaxLength: 50,
oldComment: "ชื่อประเภทเครื่องราชย์")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<string>(
name: "ShortName",
table: "Insignias",
type: "varchar(30)",
maxLength: 30,
nullable: false,
comment: "ชื่อย่อเครื่องราช",
oldClrType: typeof(string),
oldType: "varchar(30)",
oldMaxLength: 30,
oldComment: "ชื่อย่อเครื่องราชย์")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "Insignias",
type: "varchar(100)",
maxLength: 100,
nullable: false,
comment: "ชื่อเครื่องราช",
oldClrType: typeof(string),
oldType: "varchar(100)",
oldMaxLength: 100,
oldComment: "ชื่อเครื่องราชย์")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<int>(
name: "Level",
table: "Insignias",
type: "int",
nullable: false,
comment: "ลำดับชั้นของเครื่องราช เอาไว้ตรวจสอบเวลาขอว่าต้องได้ชั้นที่สูงกว่าที่เคยได้รับแล้วเท่านั้น",
oldClrType: typeof(int),
oldType: "int",
oldComment: "ลำดับชั้นของเครื่องราชย์ เอาไว้ตรวจสอบเวลาขอว่าต้องได้ชั้นที่สูงกว่าที่เคยได้รับแล้วเท่านั้น");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "InsigniaTypes",
type: "varchar(50)",
maxLength: 50,
nullable: false,
comment: "ชื่อประเภทเครื่องราชย์",
oldClrType: typeof(string),
oldType: "varchar(50)",
oldMaxLength: 50,
oldComment: "ชื่อประเภทเครื่องราช")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<string>(
name: "ShortName",
table: "Insignias",
type: "varchar(30)",
maxLength: 30,
nullable: false,
comment: "ชื่อย่อเครื่องราชย์",
oldClrType: typeof(string),
oldType: "varchar(30)",
oldMaxLength: 30,
oldComment: "ชื่อย่อเครื่องราช")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "Insignias",
type: "varchar(100)",
maxLength: 100,
nullable: false,
comment: "ชื่อเครื่องราชย์",
oldClrType: typeof(string),
oldType: "varchar(100)",
oldMaxLength: 100,
oldComment: "ชื่อเครื่องราช")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AlterColumn<int>(
name: "Level",
table: "Insignias",
type: "int",
nullable: false,
comment: "ลำดับชั้นของเครื่องราชย์ เอาไว้ตรวจสอบเวลาขอว่าต้องได้ชั้นที่สูงกว่าที่เคยได้รับแล้วเท่านั้น",
oldClrType: typeof(int),
oldType: "int",
oldComment: "ลำดับชั้นของเครื่องราช เอาไว้ตรวจสอบเวลาขอว่าต้องได้ชั้นที่สูงกว่าที่เคยได้รับแล้วเท่านั้น");
}
}
}