fix Nulable for create userid and update userid
This commit is contained in:
parent
2267d1236a
commit
2b34d3f4ce
11 changed files with 30601 additions and 761 deletions
|
|
@ -0,0 +1,954 @@
|
|||
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 ที่สร้างข้อมูล");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue