Merge pull request 'Issue creation, reolution is optional' (#106) from finishline into main
Reviewed-on: #106
This commit was merged in pull request #106.
This commit is contained in:
@@ -34,7 +34,7 @@ public sealed class IssueConfiguration : IEntityTypeConfiguration<Issue>
|
||||
.HasSentinel(Priority.Low);
|
||||
builder.Property(f => f.Status).IsRequired().HasConversion<int>().HasDefaultValueSql("1")
|
||||
.HasSentinel(ActivityStatus.Active);
|
||||
builder.Property(f => f.Resolution).IsRequired();
|
||||
builder.Property(f => f.Resolution).IsRequired(false);
|
||||
|
||||
builder.HasOne(f => f.Tenant)
|
||||
.WithMany()
|
||||
|
||||
+2453
File diff suppressed because it is too large
Load Diff
+36
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
-1
@@ -820,7 +820,6 @@ namespace PostFundManagement.Infrastructure.Database.Migrations
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("Resolution")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<DateTime?>("ResolvedAt")
|
||||
|
||||
Reference in New Issue
Block a user