| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Infrastructure.Migrations.AppDb
- {
- /// <inheritdoc />
- public partial class AddPaymentConfigExtended : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "Payment_DanalSimpleFeeAmount",
- table: "Config");
- migrationBuilder.DropColumn(
- name: "Payment_DanalSimpleFeeRate",
- table: "Config");
- migrationBuilder.AlterColumn<decimal>(
- 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<decimal>(
- 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<decimal>(
- 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<decimal>(
- 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<decimal>(
- 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<decimal>(
- 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<decimal>(
- name: "Payment_DanalKakaoPayFeeAmount",
- table: "Config",
- type: "decimal(18,0)",
- precision: 18,
- scale: 0,
- nullable: true,
- comment: "카카오페이 수수료(원)");
- migrationBuilder.AddColumn<decimal>(
- name: "Payment_DanalKakaoPayFeeRate",
- table: "Config",
- type: "decimal(5,2)",
- precision: 5,
- scale: 2,
- nullable: true,
- comment: "카카오페이 수수료(%)");
- migrationBuilder.AddColumn<decimal>(
- name: "Payment_DanalMobileFeeAmount",
- table: "Config",
- type: "decimal(18,0)",
- precision: 18,
- scale: 0,
- nullable: true,
- comment: "휴대폰 수수료(원)");
- migrationBuilder.AddColumn<decimal>(
- name: "Payment_DanalMobileFeeRate",
- table: "Config",
- type: "decimal(5,2)",
- precision: 5,
- scale: 2,
- nullable: true,
- comment: "휴대폰 수수료(%)");
- migrationBuilder.AddColumn<decimal>(
- name: "Payment_DanalNaverPayFeeAmount",
- table: "Config",
- type: "decimal(18,0)",
- precision: 18,
- scale: 0,
- nullable: true,
- comment: "네이버페이 수수료(원)");
- migrationBuilder.AddColumn<decimal>(
- name: "Payment_DanalNaverPayFeeRate",
- table: "Config",
- type: "decimal(5,2)",
- precision: 5,
- scale: 2,
- nullable: true,
- comment: "네이버페이 수수료(%)");
- migrationBuilder.AddColumn<bool>(
- name: "Payment_IsCardEnabled",
- table: "Config",
- type: "bit",
- nullable: false,
- defaultValue: false,
- comment: "신용카드 사용 여부");
- migrationBuilder.AddColumn<bool>(
- name: "Payment_IsKakaoPayEnabled",
- table: "Config",
- type: "bit",
- nullable: false,
- defaultValue: false,
- comment: "카카오페이 사용 여부");
- migrationBuilder.AddColumn<bool>(
- name: "Payment_IsMobileEnabled",
- table: "Config",
- type: "bit",
- nullable: false,
- defaultValue: false,
- comment: "휴대폰 사용 여부");
- migrationBuilder.AddColumn<bool>(
- name: "Payment_IsNaverPayEnabled",
- table: "Config",
- type: "bit",
- nullable: false,
- defaultValue: false,
- comment: "네이버페이 사용 여부");
- migrationBuilder.AddColumn<bool>(
- name: "Payment_IsTransferEnabled",
- table: "Config",
- type: "bit",
- nullable: false,
- defaultValue: false,
- comment: "계좌이체 사용 여부");
- migrationBuilder.AddColumn<bool>(
- name: "Payment_IsVirtualAccountEnabled",
- table: "Config",
- type: "bit",
- nullable: false,
- defaultValue: false,
- comment: "가상계좌 사용 여부");
- }
- /// <inheritdoc />
- 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<decimal>(
- 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<decimal>(
- 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<decimal>(
- 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<decimal>(
- 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<decimal>(
- 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<decimal>(
- 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<decimal>(
- name: "Payment_DanalSimpleFeeAmount",
- table: "Config",
- type: "decimal(18,0)",
- precision: 18,
- nullable: true);
- migrationBuilder.AddColumn<decimal>(
- name: "Payment_DanalSimpleFeeRate",
- table: "Config",
- type: "decimal(5,2)",
- precision: 5,
- scale: 2,
- nullable: true);
- }
- }
- }
|