90 lines
3.7 KiB
C#
90 lines
3.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class updatetableDisciplineDisciplinarysaddIsSuspend1 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IsReport",
|
|
table: "DisciplineInvestigate_ProfileComplaints",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ส่งไปยุติเรื่อง",
|
|
oldClrType: typeof(bool),
|
|
oldType: "tinyint(1)",
|
|
oldComment: "ส่งไปยุติเรื่อง")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IsSuspend",
|
|
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ส่งไปพักราชการ",
|
|
oldClrType: typeof(bool),
|
|
oldType: "tinyint(1)",
|
|
oldComment: "ส่งไปพักราชการ")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "IsReport",
|
|
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ส่งไปยุติเรื่อง",
|
|
oldClrType: typeof(bool),
|
|
oldType: "tinyint(1)",
|
|
oldComment: "ส่งไปยุติเรื่อง")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsReport",
|
|
table: "DisciplineInvestigate_ProfileComplaints",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
comment: "ส่งไปยุติเรื่อง",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true,
|
|
oldComment: "ส่งไปยุติเรื่อง")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsSuspend",
|
|
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
comment: "ส่งไปพักราชการ",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true,
|
|
oldComment: "ส่งไปพักราชการ")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "IsReport",
|
|
table: "DisciplineDisciplinary_ProfileComplaintInvestigates",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
defaultValue: false,
|
|
comment: "ส่งไปยุติเรื่อง",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true,
|
|
oldComment: "ส่งไปยุติเรื่อง")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
}
|
|
}
|