| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Infrastructure.Migrations.AppDb
- {
- /// <inheritdoc />
- public partial class AddMemberInventoryDeletedAt : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterTable(
- name: "MemberApprove",
- comment: "회원 알림 및 수신 동의",
- oldComment: "ȸ�� ���� �� ���� ����");
- migrationBuilder.AlterTable(
- name: "Channel",
- comment: "채널 정보",
- oldComment: "� ����");
- migrationBuilder.AddColumn<DateTime>(
- name: "DeletedAt",
- table: "MemberInventory",
- type: "datetime2",
- nullable: true,
- comment: "사용자 보관함 소프트 삭제 일시. NULL = 보관함 노출");
- migrationBuilder.AlterColumn<DateTime>(
- name: "ReceiveSMSConsentAt",
- table: "MemberApprove",
- type: "datetime2",
- nullable: true,
- comment: "SMS 수신 동의 일시",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldNullable: true,
- oldComment: "SMS ���� ���� �Ͻ�");
- migrationBuilder.AlterColumn<DateTime>(
- name: "ReceiveNoteConsentAt",
- table: "MemberApprove",
- type: "datetime2",
- nullable: true,
- comment: "쪽지 수신 동의 일시",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldNullable: true,
- oldComment: "���� ���� ���� �Ͻ�");
- migrationBuilder.AlterColumn<DateTime>(
- name: "ReceiveEmailConsentAt",
- table: "MemberApprove",
- type: "datetime2",
- nullable: true,
- comment: "E-MAIL 수신 동의 일시",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldNullable: true,
- oldComment: "E-MAIL ���� ���� �Ͻ�");
- migrationBuilder.AlterColumn<bool>(
- name: "IsReceiveSMS",
- table: "MemberApprove",
- type: "bit",
- nullable: false,
- comment: "SMS 수신 여부",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "SMS ���� ����");
- migrationBuilder.AlterColumn<bool>(
- name: "IsReceiveNote",
- table: "MemberApprove",
- type: "bit",
- nullable: false,
- comment: "쪽지 수신 여부",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "���� ���� ����");
- migrationBuilder.AlterColumn<bool>(
- name: "IsReceiveEmail",
- table: "MemberApprove",
- type: "bit",
- nullable: false,
- comment: "E-MAIL 수신 여부",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "E-MAIL ���� ����");
- migrationBuilder.AlterColumn<bool>(
- name: "IsDisclosureInvest",
- table: "MemberApprove",
- type: "bit",
- nullable: false,
- comment: "투자 현황 공개 여부",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "���� ��Ȳ ���� ����");
- migrationBuilder.AlterColumn<DateTime>(
- name: "DisclosureInvestConsentAt",
- table: "MemberApprove",
- type: "datetime2",
- nullable: true,
- comment: "투자 현황 공개 동의 일시",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldNullable: true,
- oldComment: "���� ��Ȳ ���� ���� �Ͻ�");
- migrationBuilder.AlterColumn<int>(
- name: "MemberID",
- table: "MemberApprove",
- type: "int",
- nullable: false,
- comment: "회원 ID",
- oldClrType: typeof(int),
- oldType: "int",
- oldComment: "ȸ�� ID");
- migrationBuilder.AlterColumn<string>(
- name: "YouTubeUrl",
- table: "Channel",
- type: "nvarchar(255)",
- maxLength: 255,
- nullable: false,
- comment: "YouTube 채널 URL",
- oldClrType: typeof(string),
- oldType: "nvarchar(255)",
- oldMaxLength: 255,
- oldComment: "YouTube � URL");
- migrationBuilder.AlterColumn<DateTime>(
- name: "UpdatedAt",
- table: "Channel",
- type: "datetime2",
- nullable: true,
- comment: "수정 일시",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldNullable: true,
- oldComment: "���� �Ͻ�");
- migrationBuilder.AlterColumn<string>(
- name: "SID",
- table: "Channel",
- type: "nvarchar(24)",
- maxLength: 24,
- nullable: false,
- comment: "채널 ID",
- oldClrType: typeof(string),
- oldType: "nvarchar(24)",
- oldMaxLength: 24,
- oldComment: "� ID");
- migrationBuilder.AlterColumn<string>(
- name: "Name",
- table: "Channel",
- type: "nvarchar(200)",
- maxLength: 200,
- nullable: false,
- comment: "채널 이름",
- oldClrType: typeof(string),
- oldType: "nvarchar(200)",
- oldMaxLength: 200,
- oldComment: "ä�� �̸�");
- migrationBuilder.AlterColumn<int>(
- name: "MemberID",
- table: "Channel",
- type: "int",
- nullable: false,
- comment: "회원 ID",
- oldClrType: typeof(int),
- oldType: "int",
- oldComment: "ȸ�� ID");
- migrationBuilder.AlterColumn<bool>(
- name: "IsVerified",
- table: "Channel",
- type: "bit",
- nullable: false,
- comment: "인증 여부",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "���� ����");
- migrationBuilder.AlterColumn<bool>(
- name: "IsActive",
- table: "Channel",
- type: "bit",
- nullable: false,
- comment: "활성 여부",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "Ȱ�� ����");
- migrationBuilder.AlterColumn<string>(
- name: "Handle",
- table: "Channel",
- type: "nvarchar(30)",
- maxLength: 30,
- nullable: true,
- comment: "핸들",
- oldClrType: typeof(string),
- oldType: "nvarchar(30)",
- oldMaxLength: 30,
- oldNullable: true,
- oldComment: "�ڵ�");
- migrationBuilder.AlterColumn<DateTime>(
- name: "CreatedAt",
- table: "Channel",
- type: "datetime2",
- nullable: false,
- comment: "등록 일시",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldComment: "��� �Ͻ�");
- migrationBuilder.CreateIndex(
- name: "IX_MemberInventory_MemberID_DeletedAt",
- table: "MemberInventory",
- columns: new[] { "MemberID", "DeletedAt" });
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropIndex(
- name: "IX_MemberInventory_MemberID_DeletedAt",
- table: "MemberInventory");
- migrationBuilder.DropColumn(
- name: "DeletedAt",
- table: "MemberInventory");
- migrationBuilder.AlterTable(
- name: "MemberApprove",
- comment: "ȸ�� ���� �� ���� ����",
- oldComment: "회원 알림 및 수신 동의");
- migrationBuilder.AlterTable(
- name: "Channel",
- comment: "� ����",
- oldComment: "채널 정보");
- migrationBuilder.AlterColumn<DateTime>(
- name: "ReceiveSMSConsentAt",
- table: "MemberApprove",
- type: "datetime2",
- nullable: true,
- comment: "SMS ���� ���� �Ͻ�",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldNullable: true,
- oldComment: "SMS 수신 동의 일시");
- migrationBuilder.AlterColumn<DateTime>(
- name: "ReceiveNoteConsentAt",
- table: "MemberApprove",
- type: "datetime2",
- nullable: true,
- comment: "���� ���� ���� �Ͻ�",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldNullable: true,
- oldComment: "쪽지 수신 동의 일시");
- migrationBuilder.AlterColumn<DateTime>(
- name: "ReceiveEmailConsentAt",
- table: "MemberApprove",
- type: "datetime2",
- nullable: true,
- comment: "E-MAIL ���� ���� �Ͻ�",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldNullable: true,
- oldComment: "E-MAIL 수신 동의 일시");
- migrationBuilder.AlterColumn<bool>(
- name: "IsReceiveSMS",
- table: "MemberApprove",
- type: "bit",
- nullable: false,
- comment: "SMS ���� ����",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "SMS 수신 여부");
- migrationBuilder.AlterColumn<bool>(
- name: "IsReceiveNote",
- table: "MemberApprove",
- type: "bit",
- nullable: false,
- comment: "���� ���� ����",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "쪽지 수신 여부");
- migrationBuilder.AlterColumn<bool>(
- name: "IsReceiveEmail",
- table: "MemberApprove",
- type: "bit",
- nullable: false,
- comment: "E-MAIL ���� ����",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "E-MAIL 수신 여부");
- migrationBuilder.AlterColumn<bool>(
- name: "IsDisclosureInvest",
- table: "MemberApprove",
- type: "bit",
- nullable: false,
- comment: "���� ��Ȳ ���� ����",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "투자 현황 공개 여부");
- migrationBuilder.AlterColumn<DateTime>(
- name: "DisclosureInvestConsentAt",
- table: "MemberApprove",
- type: "datetime2",
- nullable: true,
- comment: "���� ��Ȳ ���� ���� �Ͻ�",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldNullable: true,
- oldComment: "투자 현황 공개 동의 일시");
- migrationBuilder.AlterColumn<int>(
- name: "MemberID",
- table: "MemberApprove",
- type: "int",
- nullable: false,
- comment: "ȸ�� ID",
- oldClrType: typeof(int),
- oldType: "int",
- oldComment: "회원 ID");
- migrationBuilder.AlterColumn<string>(
- name: "YouTubeUrl",
- table: "Channel",
- type: "nvarchar(255)",
- maxLength: 255,
- nullable: false,
- comment: "YouTube � URL",
- oldClrType: typeof(string),
- oldType: "nvarchar(255)",
- oldMaxLength: 255,
- oldComment: "YouTube 채널 URL");
- migrationBuilder.AlterColumn<DateTime>(
- name: "UpdatedAt",
- table: "Channel",
- type: "datetime2",
- nullable: true,
- comment: "���� �Ͻ�",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldNullable: true,
- oldComment: "수정 일시");
- migrationBuilder.AlterColumn<string>(
- name: "SID",
- table: "Channel",
- type: "nvarchar(24)",
- maxLength: 24,
- nullable: false,
- comment: "� ID",
- oldClrType: typeof(string),
- oldType: "nvarchar(24)",
- oldMaxLength: 24,
- oldComment: "채널 ID");
- migrationBuilder.AlterColumn<string>(
- name: "Name",
- table: "Channel",
- type: "nvarchar(200)",
- maxLength: 200,
- nullable: false,
- comment: "ä�� �̸�",
- oldClrType: typeof(string),
- oldType: "nvarchar(200)",
- oldMaxLength: 200,
- oldComment: "채널 이름");
- migrationBuilder.AlterColumn<int>(
- name: "MemberID",
- table: "Channel",
- type: "int",
- nullable: false,
- comment: "ȸ�� ID",
- oldClrType: typeof(int),
- oldType: "int",
- oldComment: "회원 ID");
- migrationBuilder.AlterColumn<bool>(
- name: "IsVerified",
- table: "Channel",
- type: "bit",
- nullable: false,
- comment: "���� ����",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "인증 여부");
- migrationBuilder.AlterColumn<bool>(
- name: "IsActive",
- table: "Channel",
- type: "bit",
- nullable: false,
- comment: "Ȱ�� ����",
- oldClrType: typeof(bool),
- oldType: "bit",
- oldComment: "활성 여부");
- migrationBuilder.AlterColumn<string>(
- name: "Handle",
- table: "Channel",
- type: "nvarchar(30)",
- maxLength: 30,
- nullable: true,
- comment: "�ڵ�",
- oldClrType: typeof(string),
- oldType: "nvarchar(30)",
- oldMaxLength: 30,
- oldNullable: true,
- oldComment: "핸들");
- migrationBuilder.AlterColumn<DateTime>(
- name: "CreatedAt",
- table: "Channel",
- type: "datetime2",
- nullable: false,
- comment: "��� �Ͻ�",
- oldClrType: typeof(DateTime),
- oldType: "datetime2",
- oldComment: "등록 일시");
- }
- }
- }
|