แก้ไข ความยาว ตัวอักษรที่เก็บได้

This commit is contained in:
nakorn
2021-10-28 10:42:03 +07:00
parent 4d7f6186d5
commit 8e8596116f
8 changed files with 2422 additions and 8 deletions

View 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);
}
}
}