| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Infrastructure.Migrations.AppDb
- {
- /// <inheritdoc />
- public partial class AddPaymentReconcileLog : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "PaymentReconcileLog",
- columns: table => new
- {
- ID = table.Column<int>(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- PaymentOrderID = table.Column<int>(type: "int", nullable: false),
- Kind = table.Column<int>(type: "int", nullable: false),
- TransactionID = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
- Amount = table.Column<int>(type: "int", nullable: false),
- Reason = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: false),
- CreatedAt = table.Column<DateTime>(type: "datetime2", nullable: false)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_PaymentReconcileLog", x => x.ID);
- },
- comment: "PG 성공 후 저장 실패 대사 로그 (Phase 1.5)");
- migrationBuilder.CreateIndex(
- name: "IX_PaymentReconcileLog_CreatedAt",
- table: "PaymentReconcileLog",
- column: "CreatedAt");
- migrationBuilder.CreateIndex(
- name: "IX_PaymentReconcileLog_PaymentOrderID",
- table: "PaymentReconcileLog",
- column: "PaymentOrderID");
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "PaymentReconcileLog");
- }
- }
- }
|