| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- 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)");
- 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);
- }
- }
- }
|