Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Text.Json.Nodes;
using System.Threading;
using System.Threading.Tasks;
using Contracts;
using Microsoft.Extensions.Logging.Abstractions;
using NUnit.Framework;
using Particular.Approvals;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

#nullable disable

namespace ServiceControl.Persistence.EFCore.PostgreSql.Migrations
{
/// <inheritdoc />
public partial class AddExternalIntegrationDispatchRequests : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ExternalIntegrationDispatchRequests",
columns: table => new
{
id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
dispatch_context_type_name = table.Column<string>(type: "character varying(450)", maxLength: 450, nullable: false),
dispatch_context_json = table.Column<string>(type: "text", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("pk_external_integration_dispatch_requests", x => x.id);
});
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ExternalIntegrationDispatchRequests");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,32 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("EventLogItems", (string)null);
});

modelBuilder.Entity("ServiceControl.Persistence.EFCore.Entities.ExternalIntegrationDispatchRequestEntity", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("id");

NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));

b.Property<string>("DispatchContextJson")
.IsRequired()
.HasColumnType("text")
.HasColumnName("dispatch_context_json");

b.Property<string>("DispatchContextTypeName")
.IsRequired()
.HasMaxLength(450)
.HasColumnType("character varying(450)")
.HasColumnName("dispatch_context_type_name");

b.HasKey("Id")
.HasName("pk_external_integration_dispatch_requests");

b.ToTable("ExternalIntegrationDispatchRequests", (string)null);
});

modelBuilder.Entity("ServiceControl.Persistence.EFCore.Entities.FailedErrorImportEntity", b =>
{
b.Property<Guid>("UniqueMessageId")
Expand Down
Loading
Loading