78 lines
2.9 KiB
C#
78 lines
2.9 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class updateTableplacementprofilemobolelimit200 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Telephone",
|
|
table: "PlacementProfiles",
|
|
type: "varchar(200)",
|
|
maxLength: 200,
|
|
nullable: true,
|
|
comment: "โทรศัพท์",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(20)",
|
|
oldMaxLength: 20,
|
|
oldNullable: true,
|
|
oldComment: "โทรศัพท์")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MobilePhone",
|
|
table: "PlacementProfiles",
|
|
type: "varchar(200)",
|
|
maxLength: 200,
|
|
nullable: true,
|
|
comment: "โทรศัพท์มือถือ",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(20)",
|
|
oldMaxLength: 20,
|
|
oldNullable: true,
|
|
oldComment: "โทรศัพท์มือถือ")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Telephone",
|
|
table: "PlacementProfiles",
|
|
type: "varchar(20)",
|
|
maxLength: 20,
|
|
nullable: true,
|
|
comment: "โทรศัพท์",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(200)",
|
|
oldMaxLength: 200,
|
|
oldNullable: true,
|
|
oldComment: "โทรศัพท์")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "MobilePhone",
|
|
table: "PlacementProfiles",
|
|
type: "varchar(20)",
|
|
maxLength: 20,
|
|
nullable: true,
|
|
comment: "โทรศัพท์มือถือ",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(200)",
|
|
oldMaxLength: 200,
|
|
oldNullable: true,
|
|
oldComment: "โทรศัพท์มือถือ")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
}
|
|
}
|