using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class createtableDisciplineComplaint : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( 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( 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( 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( name: "Level", table: "Insignias", type: "int", nullable: false, comment: "ลำดับชั้นของเครื่องราช เอาไว้ตรวจสอบเวลาขอว่าต้องได้ชั้นที่สูงกว่าที่เคยได้รับแล้วเท่านั้น", oldClrType: typeof(int), oldType: "int", oldComment: "ลำดับชั้นของเครื่องราชย์ เอาไว้ตรวจสอบเวลาขอว่าต้องได้ชั้นที่สูงกว่าที่เคยได้รับแล้วเท่านั้น"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( 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( 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( 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( name: "Level", table: "Insignias", type: "int", nullable: false, comment: "ลำดับชั้นของเครื่องราชย์ เอาไว้ตรวจสอบเวลาขอว่าต้องได้ชั้นที่สูงกว่าที่เคยได้รับแล้วเท่านั้น", oldClrType: typeof(int), oldType: "int", oldComment: "ลำดับชั้นของเครื่องราช เอาไว้ตรวจสอบเวลาขอว่าต้องได้ชั้นที่สูงกว่าที่เคยได้รับแล้วเท่านั้น"); } } }