| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Infrastructure.Migrations.AppDb
- {
- /// <inheritdoc />
- public partial class ExpandMemberIpAddressColumn : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<string>(
- 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<string>(
- 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<string>(
- 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<string>(
- 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<string>(
- 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");
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<string>(
- 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<string>(
- 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<string>(
- 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<string>(
- 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<string>(
- 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)");
- }
- }
- }
|