67 lines
2.2 KiB
C#
67 lines
2.2 KiB
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace BMA.EHR.Recurit.Exam.Service.Migrations
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
public partial class update_DisableAddress : Migration
|
|||
|
|
{
|
|||
|
|
/// <inheritdoc />
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.AlterColumn<string>(
|
|||
|
|
name: "ZipCode1",
|
|||
|
|
table: "DisableAddresses",
|
|||
|
|
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: "DisableAddresses",
|
|||
|
|
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: "DisableAddresses",
|
|||
|
|
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: "DisableAddresses",
|
|||
|
|
type: "varchar(5)",
|
|||
|
|
maxLength: 5,
|
|||
|
|
nullable: false,
|
|||
|
|
oldClrType: typeof(string),
|
|||
|
|
oldType: "varchar(10)",
|
|||
|
|
oldMaxLength: 10)
|
|||
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|||
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|