| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Infrastructure.Migrations.AppDb
- {
- /// <inheritdoc />
- public partial class AlterApiCommissionRatePrecision : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<decimal>(
- name: "ApiCommissionRate",
- table: "Game",
- type: "decimal(10,7)",
- precision: 10,
- scale: 7,
- nullable: false,
- comment: "API 결제 보고 채널 수수료율(%) — 0~100, 0=비대상",
- oldClrType: typeof(decimal),
- oldType: "decimal(18,2)",
- oldComment: "API 결제 보고 채널 수수료율(%) — 0~100, 0=비대상");
- migrationBuilder.AlterColumn<decimal>(
- name: "CommissionRate",
- table: "ApiPurchase",
- type: "decimal(10,7)",
- precision: 10,
- scale: 7,
- nullable: false,
- oldClrType: typeof(decimal),
- oldType: "decimal(5,2)",
- oldPrecision: 5,
- oldScale: 2);
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<decimal>(
- name: "ApiCommissionRate",
- table: "Game",
- type: "decimal(18,2)",
- nullable: false,
- oldClrType: typeof(decimal),
- oldType: "decimal(10,7)",
- oldPrecision: 10,
- oldScale: 7,
- oldComment: "API 결제 보고 채널 수수료율(%) — 0~100, 0=비대상");
- migrationBuilder.AlterColumn<decimal>(
- name: "CommissionRate",
- table: "ApiPurchase",
- type: "decimal(5,2)",
- precision: 5,
- scale: 2,
- nullable: false,
- oldClrType: typeof(decimal),
- oldType: "decimal(10,7)",
- oldPrecision: 10,
- oldScale: 7);
- }
- }
- }
|