fix: align backend APIs and upload flow
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
namespace IdentityService.Infrastructure.Migrations;
|
||||
[DbContext(typeof(UserDbContext))]
|
||||
[Migration("20260915000100_ManagementReceipts")]
|
||||
public class ManagementReceipts : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder m) => m.Sql("""
|
||||
CREATE TABLE IF NOT EXISTS management_receipts (
|
||||
Owner varchar(64) NOT NULL,
|
||||
Id char(36) NOT NULL,
|
||||
Payload longtext NOT NULL,
|
||||
CreatedAt datetime(6) NOT NULL,
|
||||
PRIMARY KEY (Owner, Id)
|
||||
) CHARACTER SET utf8mb4;
|
||||
""");
|
||||
// Receipts are retained on rollback: losing idempotency history can repeat a previously applied action.
|
||||
protected override void Down(MigrationBuilder m) { }
|
||||
}
|
||||
Reference in New Issue
Block a user