Fixed notification composition

This commit is contained in:
2026-10-22 23:36:03 +02:00
parent 46c6ddcc80
commit 5050c901bc
9 changed files with 2949 additions and 358 deletions
@@ -0,0 +1,60 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PostFundManagement.Infrastructure.Database.Migrations
{
/// <inheritdoc />
public partial class IncreasedLargeTextLengthTo1MB : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Findings",
table: "SiteVisits",
type: "character varying(1048576)",
maxLength: 1048576,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(4096)",
oldMaxLength: 4096,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Message",
table: "Notifications",
type: "character varying(1048576)",
maxLength: 1048576,
nullable: false,
oldClrType: typeof(string),
oldType: "character varying(4096)",
oldMaxLength: 4096);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Findings",
table: "SiteVisits",
type: "character varying(4096)",
maxLength: 4096,
nullable: true,
oldClrType: typeof(string),
oldType: "character varying(1048576)",
oldMaxLength: 1048576,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Message",
table: "Notifications",
type: "character varying(4096)",
maxLength: 4096,
nullable: false,
oldClrType: typeof(string),
oldType: "character varying(1048576)",
oldMaxLength: 1048576);
}
}
}
@@ -958,8 +958,8 @@ namespace PostFundManagement.Infrastructure.Database.Migrations
b.Property<string>("Message")
.IsRequired()
.HasMaxLength(4096)
.HasColumnType("character varying(4096)");
.HasMaxLength(1048576)
.HasColumnType("character varying(1048576)");
b.Property<long>("OrganisationId")
.HasColumnType("bigint");
@@ -1405,8 +1405,8 @@ namespace PostFundManagement.Infrastructure.Database.Migrations
.HasColumnType("uuid");
b.Property<string>("Findings")
.HasMaxLength(4096)
.HasColumnType("character varying(4096)");
.HasMaxLength(1048576)
.HasColumnType("character varying(1048576)");
b.Property<string>("InspectorName")
.IsRequired()