แก้ไข ความยาว ตัวอักษรที่เก็บได้
This commit is contained in:
1158
Migrations/20211028033728_UpdateFieldLength.Designer.cs
generated
Normal file
1158
Migrations/20211028033728_UpdateFieldLength.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
49
Migrations/20211028033728_UpdateFieldLength.cs
Normal file
49
Migrations/20211028033728_UpdateFieldLength.cs
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace tb320eva.Migrations
|
||||||
|
{
|
||||||
|
public partial class UpdateFieldLength : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "behavior",
|
||||||
|
table: "eva_evaluation_behavior",
|
||||||
|
maxLength: 16000,
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldMaxLength: 1000,
|
||||||
|
oldNullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "achievement",
|
||||||
|
table: "eva_evaluation_achievement",
|
||||||
|
maxLength: 16000,
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldMaxLength: 8000,
|
||||||
|
oldNullable: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "behavior",
|
||||||
|
table: "eva_evaluation_behavior",
|
||||||
|
maxLength: 1000,
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldMaxLength: 16000,
|
||||||
|
oldNullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "achievement",
|
||||||
|
table: "eva_evaluation_achievement",
|
||||||
|
maxLength: 8000,
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldMaxLength: 16000,
|
||||||
|
oldNullable: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1158
Migrations/20211028034057_UpdateFieldLength2.Designer.cs
generated
Normal file
1158
Migrations/20211028034057_UpdateFieldLength2.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
49
Migrations/20211028034057_UpdateFieldLength2.cs
Normal file
49
Migrations/20211028034057_UpdateFieldLength2.cs
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace tb320eva.Migrations
|
||||||
|
{
|
||||||
|
public partial class UpdateFieldLength2 : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "properties",
|
||||||
|
table: "activity_log_eva",
|
||||||
|
maxLength: 32000,
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldMaxLength: 8000,
|
||||||
|
oldNullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "description",
|
||||||
|
table: "activity_log_eva",
|
||||||
|
maxLength: 32000,
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldMaxLength: 4000,
|
||||||
|
oldNullable: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "properties",
|
||||||
|
table: "activity_log_eva",
|
||||||
|
maxLength: 8000,
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldMaxLength: 32000,
|
||||||
|
oldNullable: true);
|
||||||
|
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "description",
|
||||||
|
table: "activity_log_eva",
|
||||||
|
maxLength: 4000,
|
||||||
|
nullable: true,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldMaxLength: 32000,
|
||||||
|
oldNullable: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -32,7 +32,7 @@ namespace tb320eva.Migrations
|
|||||||
b.Property<DateTime?>("created_at");
|
b.Property<DateTime?>("created_at");
|
||||||
|
|
||||||
b.Property<string>("description")
|
b.Property<string>("description")
|
||||||
.HasMaxLength(4000);
|
.HasMaxLength(32000);
|
||||||
|
|
||||||
b.Property<string>("ip_address")
|
b.Property<string>("ip_address")
|
||||||
.HasMaxLength(191);
|
.HasMaxLength(191);
|
||||||
@@ -44,7 +44,7 @@ namespace tb320eva.Migrations
|
|||||||
.HasMaxLength(191);
|
.HasMaxLength(191);
|
||||||
|
|
||||||
b.Property<string>("properties")
|
b.Property<string>("properties")
|
||||||
.HasMaxLength(8000);
|
.HasMaxLength(32000);
|
||||||
|
|
||||||
b.Property<int?>("subject_id");
|
b.Property<int?>("subject_id");
|
||||||
|
|
||||||
@@ -459,7 +459,7 @@ namespace tb320eva.Migrations
|
|||||||
b.Property<int>("id");
|
b.Property<int>("id");
|
||||||
|
|
||||||
b.Property<string>("achievement")
|
b.Property<string>("achievement")
|
||||||
.HasMaxLength(8000);
|
.HasMaxLength(16000);
|
||||||
|
|
||||||
b.Property<int?>("create_evaluation_detail_id");
|
b.Property<int?>("create_evaluation_detail_id");
|
||||||
|
|
||||||
@@ -539,7 +539,7 @@ namespace tb320eva.Migrations
|
|||||||
b.Property<int>("id");
|
b.Property<int>("id");
|
||||||
|
|
||||||
b.Property<string>("behavior")
|
b.Property<string>("behavior")
|
||||||
.HasMaxLength(1000);
|
.HasMaxLength(16000);
|
||||||
|
|
||||||
b.Property<int?>("create_evaluation_detail_id");
|
b.Property<int?>("create_evaluation_detail_id");
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace TodoAPI2.Models
|
|||||||
[MaxLength(191)]
|
[MaxLength(191)]
|
||||||
public string log_name { get; set; }
|
public string log_name { get; set; }
|
||||||
|
|
||||||
[MaxLength(4000)]
|
[MaxLength(32000)]
|
||||||
public string description { get; set; }
|
public string description { get; set; }
|
||||||
|
|
||||||
public int? subject_id { get; set; }
|
public int? subject_id { get; set; }
|
||||||
@@ -33,7 +33,7 @@ namespace TodoAPI2.Models
|
|||||||
[MaxLength(191)]
|
[MaxLength(191)]
|
||||||
public string causer_type { get; set; }
|
public string causer_type { get; set; }
|
||||||
|
|
||||||
[MaxLength(8000)]
|
[MaxLength(32000)]
|
||||||
public string properties { get; set; }
|
public string properties { get; set; }
|
||||||
|
|
||||||
[MaxLength(191)]
|
[MaxLength(191)]
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace TodoAPI2.Models
|
|||||||
public eva_create_evaluation_detailEntity eva_create_evaluation_detail { get; set; }
|
public eva_create_evaluation_detailEntity eva_create_evaluation_detail { get; set; }
|
||||||
public int? create_evaluation_detail_id { get; set; }
|
public int? create_evaluation_detail_id { get; set; }
|
||||||
|
|
||||||
[MaxLength(8000)]
|
[MaxLength(16000)]
|
||||||
public string achievement { get; set; }
|
public string achievement { get; set; }
|
||||||
|
|
||||||
public decimal? weight { get; set; }
|
public decimal? weight { get; set; }
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace TodoAPI2.Models
|
|||||||
public eva_create_evaluation_detailEntity eva_create_evaluation_detail { get; set; }
|
public eva_create_evaluation_detailEntity eva_create_evaluation_detail { get; set; }
|
||||||
public int? create_evaluation_detail_id { get; set; }
|
public int? create_evaluation_detail_id { get; set; }
|
||||||
|
|
||||||
[MaxLength(1000)]
|
[MaxLength(16000)]
|
||||||
public string behavior { get; set; }
|
public string behavior { get; set; }
|
||||||
|
|
||||||
public decimal? weight { get; set; }
|
public decimal? weight { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user