using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations.AppDb { /// public partial class ExpandMemberIpAddressColumn : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "IpAddress", table: "MemberSummaryChangeLog", type: "nvarchar(45)", maxLength: 45, nullable: true, comment: "IP Address (IPv6 호환)", oldClrType: typeof(string), oldType: "nvarchar(15)", oldMaxLength: 15, oldNullable: true, oldComment: "IP Address"); migrationBuilder.AlterColumn( name: "IpAddress", table: "MemberNameChangeLog", type: "nvarchar(45)", maxLength: 45, nullable: true, comment: "IP Address (IPv6 호환)", oldClrType: typeof(string), oldType: "nvarchar(15)", oldMaxLength: 15, oldNullable: true, oldComment: "IP Address"); migrationBuilder.AlterColumn( name: "IpAddress", table: "MemberIntroChangeLog", type: "nvarchar(45)", maxLength: 45, nullable: true, comment: "IP Address (IPv6 호환)", oldClrType: typeof(string), oldType: "nvarchar(15)", oldMaxLength: 15, oldNullable: true, oldComment: "IP Address"); migrationBuilder.AlterColumn( name: "SignupIP", table: "Member", type: "nvarchar(45)", maxLength: 45, nullable: true, comment: "회원가입 시 IP (IPv6 호환 — 최대 45 char)", oldClrType: typeof(string), oldType: "nvarchar(15)", oldMaxLength: 15, oldNullable: true, oldComment: "회원가입 시 IP"); migrationBuilder.AlterColumn( name: "LastLoginIp", table: "Member", type: "nvarchar(45)", maxLength: 45, nullable: true, comment: "마지막 로그인 IP (IPv6 호환 — 최대 45 char)", oldClrType: typeof(string), oldType: "nvarchar(15)", oldMaxLength: 15, oldNullable: true, oldComment: "마지막 로그인 IP"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "IpAddress", table: "MemberSummaryChangeLog", type: "nvarchar(15)", maxLength: 15, nullable: true, comment: "IP Address", oldClrType: typeof(string), oldType: "nvarchar(45)", oldMaxLength: 45, oldNullable: true, oldComment: "IP Address (IPv6 호환)"); migrationBuilder.AlterColumn( name: "IpAddress", table: "MemberNameChangeLog", type: "nvarchar(15)", maxLength: 15, nullable: true, comment: "IP Address", oldClrType: typeof(string), oldType: "nvarchar(45)", oldMaxLength: 45, oldNullable: true, oldComment: "IP Address (IPv6 호환)"); migrationBuilder.AlterColumn( name: "IpAddress", table: "MemberIntroChangeLog", type: "nvarchar(15)", maxLength: 15, nullable: true, comment: "IP Address", oldClrType: typeof(string), oldType: "nvarchar(45)", oldMaxLength: 45, oldNullable: true, oldComment: "IP Address (IPv6 호환)"); migrationBuilder.AlterColumn( name: "SignupIP", table: "Member", type: "nvarchar(15)", maxLength: 15, nullable: true, comment: "회원가입 시 IP", oldClrType: typeof(string), oldType: "nvarchar(45)", oldMaxLength: 45, oldNullable: true, oldComment: "회원가입 시 IP (IPv6 호환 — 최대 45 char)"); migrationBuilder.AlterColumn( name: "LastLoginIp", table: "Member", type: "nvarchar(15)", maxLength: 15, nullable: true, comment: "마지막 로그인 IP", oldClrType: typeof(string), oldType: "nvarchar(45)", oldMaxLength: 45, oldNullable: true, oldComment: "마지막 로그인 IP (IPv6 호환 — 최대 45 char)"); } } }