Issue creation, reolution is optional

This commit is contained in:
2026-09-27 12:55:29 +02:00
parent e6fdcf3d0d
commit 1df0b97daf
4 changed files with 2490 additions and 2 deletions
@@ -0,0 +1,36 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PostFundManagement.Infrastructure.Database.Migrations
{
/// <inheritdoc />
public partial class IssueResolutionNullable : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Resolution",
table: "Issues",
type: "text",
nullable: true,
oldClrType: typeof(string),
oldType: "text");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Resolution",
table: "Issues",
type: "text",
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "text",
oldNullable: true);
}
}
}
@@ -820,7 +820,6 @@ namespace PostFundManagement.Infrastructure.Database.Migrations
.HasColumnType("bigint");
b.Property<string>("Resolution")
.IsRequired()
.HasColumnType("text");
b.Property<DateTime?>("ResolvedAt")