using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations.AppDb { /// public partial class AddPaymentConfigExtended : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Payment_DanalSimpleFeeAmount", table: "Config"); migrationBuilder.DropColumn( name: "Payment_DanalSimpleFeeRate", table: "Config"); migrationBuilder.AlterColumn( name: "Payment_DanalVbankFeeRate", table: "Config", type: "decimal(5,2)", precision: 5, scale: 2, nullable: true, comment: "가상계좌 수수료(%)", oldClrType: typeof(decimal), oldType: "decimal(5,2)", oldPrecision: 5, oldScale: 2, oldNullable: true); migrationBuilder.AlterColumn( name: "Payment_DanalVbankFeeAmount", table: "Config", type: "decimal(18,0)", precision: 18, scale: 0, nullable: true, comment: "가상계좌 수수료(원)", oldClrType: typeof(decimal), oldType: "decimal(18,0)", oldPrecision: 18, oldNullable: true); migrationBuilder.AlterColumn( name: "Payment_DanalTransferFeeRate", table: "Config", type: "decimal(5,2)", precision: 5, scale: 2, nullable: true, comment: "계좌이체 수수료(%)", oldClrType: typeof(decimal), oldType: "decimal(5,2)", oldPrecision: 5, oldScale: 2, oldNullable: true); migrationBuilder.AlterColumn( name: "Payment_DanalTransferFeeAmount", table: "Config", type: "decimal(18,0)", precision: 18, scale: 0, nullable: true, comment: "계좌이체 수수료(원)", oldClrType: typeof(decimal), oldType: "decimal(18,0)", oldPrecision: 18, oldNullable: true); migrationBuilder.AlterColumn( name: "Payment_DanalCardFeeRate", table: "Config", type: "decimal(5,2)", precision: 5, scale: 2, nullable: true, comment: "신용카드 수수료(%)", oldClrType: typeof(decimal), oldType: "decimal(5,2)", oldPrecision: 5, oldScale: 2, oldNullable: true); migrationBuilder.AlterColumn( name: "Payment_DanalCardFeeAmount", table: "Config", type: "decimal(18,0)", precision: 18, scale: 0, nullable: true, comment: "신용카드 수수료(원)", oldClrType: typeof(decimal), oldType: "decimal(18,0)", oldPrecision: 18, oldNullable: true); migrationBuilder.AddColumn( name: "Payment_DanalKakaoPayFeeAmount", table: "Config", type: "decimal(18,0)", precision: 18, scale: 0, nullable: true, comment: "카카오페이 수수료(원)"); migrationBuilder.AddColumn( name: "Payment_DanalKakaoPayFeeRate", table: "Config", type: "decimal(5,2)", precision: 5, scale: 2, nullable: true, comment: "카카오페이 수수료(%)"); migrationBuilder.AddColumn( name: "Payment_DanalMobileFeeAmount", table: "Config", type: "decimal(18,0)", precision: 18, scale: 0, nullable: true, comment: "휴대폰 수수료(원)"); migrationBuilder.AddColumn( name: "Payment_DanalMobileFeeRate", table: "Config", type: "decimal(5,2)", precision: 5, scale: 2, nullable: true, comment: "휴대폰 수수료(%)"); migrationBuilder.AddColumn( name: "Payment_DanalNaverPayFeeAmount", table: "Config", type: "decimal(18,0)", precision: 18, scale: 0, nullable: true, comment: "네이버페이 수수료(원)"); migrationBuilder.AddColumn( name: "Payment_DanalNaverPayFeeRate", table: "Config", type: "decimal(5,2)", precision: 5, scale: 2, nullable: true, comment: "네이버페이 수수료(%)"); migrationBuilder.AddColumn( name: "Payment_IsCardEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "신용카드 사용 여부"); migrationBuilder.AddColumn( name: "Payment_IsKakaoPayEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "카카오페이 사용 여부"); migrationBuilder.AddColumn( name: "Payment_IsMobileEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "휴대폰 사용 여부"); migrationBuilder.AddColumn( name: "Payment_IsNaverPayEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "네이버페이 사용 여부"); migrationBuilder.AddColumn( name: "Payment_IsTransferEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "계좌이체 사용 여부"); migrationBuilder.AddColumn( name: "Payment_IsVirtualAccountEnabled", table: "Config", type: "bit", nullable: false, defaultValue: false, comment: "가상계좌 사용 여부"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Payment_DanalKakaoPayFeeAmount", table: "Config"); migrationBuilder.DropColumn( name: "Payment_DanalKakaoPayFeeRate", table: "Config"); migrationBuilder.DropColumn( name: "Payment_DanalMobileFeeAmount", table: "Config"); migrationBuilder.DropColumn( name: "Payment_DanalMobileFeeRate", table: "Config"); migrationBuilder.DropColumn( name: "Payment_DanalNaverPayFeeAmount", table: "Config"); migrationBuilder.DropColumn( name: "Payment_DanalNaverPayFeeRate", table: "Config"); migrationBuilder.DropColumn( name: "Payment_IsCardEnabled", table: "Config"); migrationBuilder.DropColumn( name: "Payment_IsKakaoPayEnabled", table: "Config"); migrationBuilder.DropColumn( name: "Payment_IsMobileEnabled", table: "Config"); migrationBuilder.DropColumn( name: "Payment_IsNaverPayEnabled", table: "Config"); migrationBuilder.DropColumn( name: "Payment_IsTransferEnabled", table: "Config"); migrationBuilder.DropColumn( name: "Payment_IsVirtualAccountEnabled", table: "Config"); migrationBuilder.AlterColumn( name: "Payment_DanalVbankFeeRate", table: "Config", type: "decimal(5,2)", precision: 5, scale: 2, nullable: true, oldClrType: typeof(decimal), oldType: "decimal(5,2)", oldPrecision: 5, oldScale: 2, oldNullable: true, oldComment: "가상계좌 수수료(%)"); migrationBuilder.AlterColumn( name: "Payment_DanalVbankFeeAmount", table: "Config", type: "decimal(18,0)", precision: 18, nullable: true, oldClrType: typeof(decimal), oldType: "decimal(18,0)", oldPrecision: 18, oldScale: 0, oldNullable: true, oldComment: "가상계좌 수수료(원)"); migrationBuilder.AlterColumn( name: "Payment_DanalTransferFeeRate", table: "Config", type: "decimal(5,2)", precision: 5, scale: 2, nullable: true, oldClrType: typeof(decimal), oldType: "decimal(5,2)", oldPrecision: 5, oldScale: 2, oldNullable: true, oldComment: "계좌이체 수수료(%)"); migrationBuilder.AlterColumn( name: "Payment_DanalTransferFeeAmount", table: "Config", type: "decimal(18,0)", precision: 18, nullable: true, oldClrType: typeof(decimal), oldType: "decimal(18,0)", oldPrecision: 18, oldScale: 0, oldNullable: true, oldComment: "계좌이체 수수료(원)"); migrationBuilder.AlterColumn( name: "Payment_DanalCardFeeRate", table: "Config", type: "decimal(5,2)", precision: 5, scale: 2, nullable: true, oldClrType: typeof(decimal), oldType: "decimal(5,2)", oldPrecision: 5, oldScale: 2, oldNullable: true, oldComment: "신용카드 수수료(%)"); migrationBuilder.AlterColumn( name: "Payment_DanalCardFeeAmount", table: "Config", type: "decimal(18,0)", precision: 18, nullable: true, oldClrType: typeof(decimal), oldType: "decimal(18,0)", oldPrecision: 18, oldScale: 0, oldNullable: true, oldComment: "신용카드 수수료(원)"); migrationBuilder.AddColumn( name: "Payment_DanalSimpleFeeAmount", table: "Config", type: "decimal(18,0)", precision: 18, nullable: true); migrationBuilder.AddColumn( name: "Payment_DanalSimpleFeeRate", table: "Config", type: "decimal(5,2)", precision: 5, scale: 2, nullable: true); } } }