using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Infrastructure.Migrations.AppDb
{
///
public partial class ExpandChannelRatePrecision : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
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(
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 몫");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
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(
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자리");
}
}
}