| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Infrastructure.Migrations.AppDb
- {
- /// <inheritdoc />
- public partial class MoveChannelCommissionToChannel : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "ChannelCommissionRate",
- table: "Game");
- migrationBuilder.AlterColumn<decimal>(
- 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<decimal>(
- name: "StoreCommissionRate",
- table: "Channel",
- type: "decimal(5,2)",
- precision: 5,
- scale: 2,
- nullable: false,
- defaultValue: 0m,
- comment: "상점 매출 보상률(%) — 채널 몫");
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "StoreCommissionRate",
- table: "Channel");
- migrationBuilder.AddColumn<decimal>(
- name: "ChannelCommissionRate",
- table: "Game",
- type: "decimal(5,2)",
- precision: 5,
- scale: 2,
- nullable: false,
- defaultValue: 0m,
- comment: "후원 채널 보상률(%)");
- migrationBuilder.AlterColumn<decimal>(
- 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 몫");
- }
- }
- }
|