Files
hrynco-notification-service/HrynCo.NotificationService.DAL.EF/Migrations/20261023223753_AddPushDeliveries.cs
T
agrynco 1631786ce2 feat(push): add service-owned firebase channels and delivery
Add push contracts, provider delivery and channel diagnostics. Link email channels to services and document migration and validation.

Ref: IT-1074
2026-10-24 12:31:35 +03:00

43 lines
1.6 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace HrynCo.NotificationService.DAL.EF.Migrations
{
/// <inheritdoc />
public partial class AddPushDeliveries : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PushDeliveries",
columns: table => new
{
MessageId = table.Column<Guid>(type: "uuid", nullable: false),
ServiceName = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: false),
Error = table.Column<string>(type: "character varying(256)", maxLength: 256, nullable: true),
InvalidRegistration = table.Column<bool>(type: "boolean", nullable: false),
CompletedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PushDeliveries", x => new { x.ServiceName, x.MessageId });
});
migrationBuilder.CreateIndex(
name: "IX_PushDeliveries_CompletedAt",
table: "PushDeliveries",
column: "CompletedAt");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PushDeliveries");
}
}
}