66 lines
2.2 KiB
C#
66 lines
2.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Recruit.Service.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class update_RecruitAddress : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ZipCode1",
|
|
table: "RecruitAddresses",
|
|
type: "varchar(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(5)",
|
|
oldMaxLength: 5)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ZipCode",
|
|
table: "RecruitAddresses",
|
|
type: "varchar(10)",
|
|
maxLength: 10,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(5)",
|
|
oldMaxLength: 5)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ZipCode1",
|
|
table: "RecruitAddresses",
|
|
type: "varchar(5)",
|
|
maxLength: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(10)",
|
|
oldMaxLength: 10)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ZipCode",
|
|
table: "RecruitAddresses",
|
|
type: "varchar(5)",
|
|
maxLength: 5,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(10)",
|
|
oldMaxLength: 10)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
}
|
|
}
|