| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Infrastructure.Migrations.AppDb
- {
- /// <inheritdoc />
- public partial class ExpandChannelRatePrecision : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<decimal>(
- name: "StoreCommissionRate",
- table: "Channel",
- type: "decimal(10,7)",
- precision: 10,
- scale: 7,
- nullable: false,
- defaultValue: 0m,
- comment: "상점 매출 보상률(%) — 채널 몫, 0~100, 소수점 7자리",
- oldClrType: typeof(decimal),
- oldType: "decimal(5,2)",
- oldPrecision: 5,
- oldScale: 2,
- oldDefaultValue: 0m,
- oldComment: "상점 매출 보상률(%) — 채널 몫");
- migrationBuilder.AlterColumn<decimal>(
- name: "PlatformFeeRate",
- table: "Channel",
- type: "decimal(10,7)",
- precision: 10,
- scale: 7,
- nullable: false,
- comment: "후원 수수료(%) — dpot 몫, 0~100, 소수점 7자리",
- oldClrType: typeof(decimal),
- oldType: "decimal(5,2)",
- oldPrecision: 5,
- oldScale: 2,
- oldComment: "후원 수수료(%) — dpot 몫");
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<decimal>(
- name: "StoreCommissionRate",
- table: "Channel",
- type: "decimal(5,2)",
- precision: 5,
- scale: 2,
- nullable: false,
- defaultValue: 0m,
- comment: "상점 매출 보상률(%) — 채널 몫",
- oldClrType: typeof(decimal),
- oldType: "decimal(10,7)",
- oldPrecision: 10,
- oldScale: 7,
- oldDefaultValue: 0m,
- oldComment: "상점 매출 보상률(%) — 채널 몫, 0~100, 소수점 7자리");
- migrationBuilder.AlterColumn<decimal>(
- name: "PlatformFeeRate",
- table: "Channel",
- type: "decimal(5,2)",
- precision: 5,
- scale: 2,
- nullable: false,
- comment: "후원 수수료(%) — dpot 몫",
- oldClrType: typeof(decimal),
- oldType: "decimal(10,7)",
- oldPrecision: 10,
- oldScale: 7,
- oldComment: "후원 수수료(%) — dpot 몫, 0~100, 소수점 7자리");
- }
- }
- }
|