49 lines
1.7 KiB
C#
49 lines
1.7 KiB
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
public partial class updateTableplacementprofilemobilelimit200 : Migration
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "OccupationTelephone",
|
|||
|
|
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: "OccupationTelephone",
|
|||
|
|
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");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|