Skip to content

Commit

Permalink
Set default values for EvaluateComment, -Partial, -PrecursorDelivery …
Browse files Browse the repository at this point in the history
…to Required
  • Loading branch information
Philippluca committed Jan 7, 2025
1 parent 0db7ad3 commit eb47825
Showing 1 changed file with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore.Migrations;
using Geopilot.Api.Models;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

Expand Down Expand Up @@ -84,6 +85,28 @@ protected override void Up(MigrationBuilder migrationBuilder)
column: "MandateId",
principalTable: "Mandates",
principalColumn: "Id");

migrationBuilder.UpdateData(
table: "Mandates",
keyColumn: "EvaluateComment",
keyValue: string.Empty,
column: "EvaluateComment",
value: FieldEvaluationType.Required.ToString());

migrationBuilder.UpdateData(
table: "Mandates",
keyColumn: "EvaluatePartial",
keyValue: string.Empty,
column: "EvaluatePartial",
value: FieldEvaluationType.Required.ToString());

migrationBuilder.UpdateData(
table: "Mandates",
keyColumn: "EvaluatePrecursorDelivery",
keyValue: string.Empty,
column: "EvaluatePrecursorDelivery",
value: FieldEvaluationType.Required.ToString());

}

/// <inheritdoc />
Expand Down

0 comments on commit eb47825

Please sign in to comment.