hrms-api-backend/BMA.EHR.Infrastructure/Migrations/20240503075336_Change userid to Nullable.cs
2024-05-03 15:00:22 +07:00

954 lines
41 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class ChangeuseridtoNullable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "UserTimeStamps",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "UserTimeStamps",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "UserTimeStamps",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "UserTimeStamps",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "UserDutyTimes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "UserDutyTimes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "UserDutyTimes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "UserDutyTimes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "UserCalendars",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "UserCalendars",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "UserCalendars",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "UserCalendars",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "ProcessUserTimeStamps",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "ProcessUserTimeStamps",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "ProcessUserTimeStamps",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "ProcessUserTimeStamps",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "LeaveTypes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "LeaveTypes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "LeaveTypes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "LeaveTypes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "LeaveRequests",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "LeaveRequests",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "LeaveRequests",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "LeaveRequests",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "LeaveDocuments",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "LeaveDocuments",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "LeaveDocuments",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "LeaveDocuments",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "DutyTimes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "DutyTimes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "DutyTimes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "DutyTimes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "AdditionalCheckRequests",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "AdditionalCheckRequests",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "AdditionalCheckRequests",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: true,
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "AdditionalCheckRequests",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: true,
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "UserTimeStamps",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "UserTimeStamps",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "UserTimeStamps",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "UserTimeStamps",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "UserDutyTimes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "UserDutyTimes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "UserDutyTimes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "UserDutyTimes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "UserCalendars",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "UserCalendars",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "UserCalendars",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "UserCalendars",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "ProcessUserTimeStamps",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "ProcessUserTimeStamps",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "ProcessUserTimeStamps",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "ProcessUserTimeStamps",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "LeaveTypes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "LeaveTypes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "LeaveTypes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "LeaveTypes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "LeaveRequests",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "LeaveRequests",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "LeaveRequests",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "LeaveRequests",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "LeaveDocuments",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "LeaveDocuments",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "LeaveDocuments",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "LeaveDocuments",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "DutyTimes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "DutyTimes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "DutyTimes",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "DutyTimes",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateUserId",
table: "AdditionalCheckRequests",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "LastUpdateFullName",
table: "AdditionalCheckRequests",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด");
migrationBuilder.AlterColumn<string>(
name: "CreatedUserId",
table: "AdditionalCheckRequests",
type: "NVARCHAR2(40)",
maxLength: 40,
nullable: false,
defaultValue: "",
comment: "User Id ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(40)",
oldMaxLength: 40,
oldNullable: true,
oldComment: "User Id ที่สร้างข้อมูล");
migrationBuilder.AlterColumn<string>(
name: "CreatedFullName",
table: "AdditionalCheckRequests",
type: "NVARCHAR2(200)",
maxLength: 200,
nullable: false,
defaultValue: "",
comment: "ชื่อ User ที่สร้างข้อมูล",
oldClrType: typeof(string),
oldType: "NVARCHAR2(200)",
oldMaxLength: 200,
oldNullable: true,
oldComment: "ชื่อ User ที่สร้างข้อมูล");
}
}
}