using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations.AppDb { /// public partial class RemoveConfigHasDefaultValueSentinels : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Payment_IsVirtualAccountEnabled", table: "Config", type: "bit", nullable: false, comment: "가상계좌 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: false, oldComment: "가상계좌 사용 여부"); migrationBuilder.AlterColumn( name: "Payment_IsTransferEnabled", table: "Config", type: "bit", nullable: false, comment: "계좌이체 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: false, oldComment: "계좌이체 사용 여부"); migrationBuilder.AlterColumn( name: "Payment_IsNaverPayEnabled", table: "Config", type: "bit", nullable: false, comment: "네이버페이 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: false, oldComment: "네이버페이 사용 여부"); migrationBuilder.AlterColumn( name: "Payment_IsMobileEnabled", table: "Config", type: "bit", nullable: false, comment: "휴대폰 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: false, oldComment: "휴대폰 사용 여부"); migrationBuilder.AlterColumn( name: "Payment_IsKakaoPayEnabled", table: "Config", type: "bit", nullable: false, comment: "카카오페이 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: false, oldComment: "카카오페이 사용 여부"); migrationBuilder.AlterColumn( name: "Payment_IsCardEnabled", table: "Config", type: "bit", nullable: false, comment: "신용카드 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: false, oldComment: "신용카드 사용 여부"); migrationBuilder.AlterColumn( name: "ChatExp_UxShowMyXpBadge", table: "Config", type: "bit", nullable: false, comment: "내 XP 뱃지 노출", oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: true, oldComment: "내 XP 뱃지 노출"); migrationBuilder.AlterColumn( name: "ChatExp_UxShowLeaderboard", table: "Config", type: "bit", nullable: false, comment: "watch에서 리더보드 노출", oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: true, oldComment: "watch에서 리더보드 노출"); migrationBuilder.AlterColumn( name: "Attendance_UseStreakBonus", table: "Config", type: "bit", nullable: false, comment: "연속 출석 가중치 사용", oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: false, oldComment: "연속 출석 가중치 사용"); migrationBuilder.AlterColumn( name: "Attendance_UseRankBonus", table: "Config", type: "bit", nullable: false, comment: "순위 보상 사용", oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: false, oldComment: "순위 보상 사용"); migrationBuilder.AlterColumn( name: "Attendance_StreakBonusPointPerDay", table: "Config", type: "int", nullable: false, comment: "1일당 추가 포인트", oldClrType: typeof(int), oldType: "int", oldDefaultValue: 0, oldComment: "1일당 추가 포인트"); migrationBuilder.AlterColumn( name: "Attendance_StreakBonusPerDay", table: "Config", type: "int", nullable: false, comment: "1일당 추가 경험치", oldClrType: typeof(int), oldType: "int", oldDefaultValue: 0, oldComment: "1일당 추가 경험치"); migrationBuilder.AlterColumn( name: "Attendance_StreakBonusMaxDays", table: "Config", type: "int", nullable: false, comment: "가중치 최대 적용 일수", oldClrType: typeof(int), oldType: "int", oldDefaultValue: 0, oldComment: "가중치 최대 적용 일수"); migrationBuilder.AlterColumn( name: "Attendance_IsEnabled", table: "Config", type: "bit", nullable: false, comment: "출석 기능 활성화", oldClrType: typeof(bool), oldType: "bit", oldDefaultValue: false, oldComment: "출석 기능 활성화"); migrationBuilder.AlterColumn( name: "Attendance_BasePoint", table: "Config", type: "int", nullable: false, comment: "기본 포인트", oldClrType: typeof(int), oldType: "int", oldDefaultValue: 0, oldComment: "기본 포인트"); migrationBuilder.AlterColumn( name: "Attendance_BaseExp", table: "Config", type: "int", nullable: false, comment: "기본 경험치", oldClrType: typeof(int), oldType: "int", oldDefaultValue: 0, oldComment: "기본 경험치"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Payment_IsVirtualAccountEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "가상계좌 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldComment: "가상계좌 사용 여부"); migrationBuilder.AlterColumn( name: "Payment_IsTransferEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "계좌이체 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldComment: "계좌이체 사용 여부"); migrationBuilder.AlterColumn( name: "Payment_IsNaverPayEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "네이버페이 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldComment: "네이버페이 사용 여부"); migrationBuilder.AlterColumn( name: "Payment_IsMobileEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "휴대폰 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldComment: "휴대폰 사용 여부"); migrationBuilder.AlterColumn( name: "Payment_IsKakaoPayEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "카카오페이 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldComment: "카카오페이 사용 여부"); migrationBuilder.AlterColumn( name: "Payment_IsCardEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "신용카드 사용 여부", oldClrType: typeof(bool), oldType: "bit", oldComment: "신용카드 사용 여부"); migrationBuilder.AlterColumn( name: "ChatExp_UxShowMyXpBadge", table: "Config", type: "bit", nullable: false, defaultValue: true, comment: "내 XP 뱃지 노출", oldClrType: typeof(bool), oldType: "bit", oldComment: "내 XP 뱃지 노출"); migrationBuilder.AlterColumn( name: "ChatExp_UxShowLeaderboard", table: "Config", type: "bit", nullable: false, defaultValue: true, comment: "watch에서 리더보드 노출", oldClrType: typeof(bool), oldType: "bit", oldComment: "watch에서 리더보드 노출"); migrationBuilder.AlterColumn( name: "Attendance_UseStreakBonus", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "연속 출석 가중치 사용", oldClrType: typeof(bool), oldType: "bit", oldComment: "연속 출석 가중치 사용"); migrationBuilder.AlterColumn( name: "Attendance_UseRankBonus", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "순위 보상 사용", oldClrType: typeof(bool), oldType: "bit", oldComment: "순위 보상 사용"); migrationBuilder.AlterColumn( name: "Attendance_StreakBonusPointPerDay", table: "Config", type: "int", nullable: false, defaultValue: 0, comment: "1일당 추가 포인트", oldClrType: typeof(int), oldType: "int", oldComment: "1일당 추가 포인트"); migrationBuilder.AlterColumn( name: "Attendance_StreakBonusPerDay", table: "Config", type: "int", nullable: false, defaultValue: 0, comment: "1일당 추가 경험치", oldClrType: typeof(int), oldType: "int", oldComment: "1일당 추가 경험치"); migrationBuilder.AlterColumn( name: "Attendance_StreakBonusMaxDays", table: "Config", type: "int", nullable: false, defaultValue: 0, comment: "가중치 최대 적용 일수", oldClrType: typeof(int), oldType: "int", oldComment: "가중치 최대 적용 일수"); migrationBuilder.AlterColumn( name: "Attendance_IsEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "출석 기능 활성화", oldClrType: typeof(bool), oldType: "bit", oldComment: "출석 기능 활성화"); migrationBuilder.AlterColumn( name: "Attendance_BasePoint", table: "Config", type: "int", nullable: false, defaultValue: 0, comment: "기본 포인트", oldClrType: typeof(int), oldType: "int", oldComment: "기본 포인트"); migrationBuilder.AlterColumn( name: "Attendance_BaseExp", table: "Config", type: "int", nullable: false, defaultValue: 0, comment: "기본 경험치", oldClrType: typeof(int), oldType: "int", oldComment: "기본 경험치"); } } }