using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations.AppDb { /// public partial class MoveChannelCommissionToChannel : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ChannelCommissionRate", table: "Game"); migrationBuilder.AlterColumn( name: "PlatformFeeRate", table: "Channel", type: "decimal(5,2)", precision: 5, scale: 2, nullable: false, comment: "후원 수수료(%) — dpot 몫", oldClrType: typeof(decimal), oldType: "decimal(5,2)", oldPrecision: 5, oldScale: 2, oldComment: "������(%)"); migrationBuilder.AddColumn( name: "StoreCommissionRate", table: "Channel", type: "decimal(5,2)", precision: 5, scale: 2, nullable: false, defaultValue: 0m, comment: "상점 매출 보상률(%) — 채널 몫"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "StoreCommissionRate", table: "Channel"); migrationBuilder.AddColumn( name: "ChannelCommissionRate", table: "Game", type: "decimal(5,2)", precision: 5, scale: 2, nullable: false, defaultValue: 0m, comment: "후원 채널 보상률(%)"); migrationBuilder.AlterColumn( name: "PlatformFeeRate", table: "Channel", type: "decimal(5,2)", precision: 5, scale: 2, nullable: false, comment: "������(%)", oldClrType: typeof(decimal), oldType: "decimal(5,2)", oldPrecision: 5, oldScale: 2, oldComment: "후원 수수료(%) — dpot 몫"); } } }