From cc2671dde7b8f6b88596d795e5000c1132096e02 Mon Sep 17 00:00:00 2001 From: Phil Schneider Date: Fri, 8 Sep 2023 11:52:27 +0200 Subject: [PATCH] fix(n2n): add default value for companyApplicationType (#257) Refs: CPLP-3152 Reviewed-By: Norbert Truchsess --- ...er.cs => 20230908093243_CPLP-3165-AddN2NModels.Designer.cs} | 2 +- ...ddN2NModels.cs => 20230908093243_CPLP-3165-AddN2NModels.cs} | 1 + .../Migrations/PortalDbContextModelSnapshot.cs | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) rename src/portalbackend/PortalBackend.Migrations/Migrations/{20230906061622_CPLP-3165-AddN2NModels.Designer.cs => 20230908093243_CPLP-3165-AddN2NModels.Designer.cs} (99%) rename src/portalbackend/PortalBackend.Migrations/Migrations/{20230906061622_CPLP-3165-AddN2NModels.cs => 20230908093243_CPLP-3165-AddN2NModels.cs} (99%) diff --git a/src/portalbackend/PortalBackend.Migrations/Migrations/20230906061622_CPLP-3165-AddN2NModels.Designer.cs b/src/portalbackend/PortalBackend.Migrations/Migrations/20230908093243_CPLP-3165-AddN2NModels.Designer.cs similarity index 99% rename from src/portalbackend/PortalBackend.Migrations/Migrations/20230906061622_CPLP-3165-AddN2NModels.Designer.cs rename to src/portalbackend/PortalBackend.Migrations/Migrations/20230908093243_CPLP-3165-AddN2NModels.Designer.cs index b2bcd74649..8e8f89071e 100644 --- a/src/portalbackend/PortalBackend.Migrations/Migrations/20230906061622_CPLP-3165-AddN2NModels.Designer.cs +++ b/src/portalbackend/PortalBackend.Migrations/Migrations/20230908093243_CPLP-3165-AddN2NModels.Designer.cs @@ -29,7 +29,7 @@ namespace Org.Eclipse.TractusX.Portal.Backend.PortalBackend.Migrations.Migrations { [DbContext(typeof(PortalDbContext))] - [Migration("20230906061622_CPLP-3165-AddN2NModels")] + [Migration("20230908093243_CPLP-3165-AddN2NModels")] partial class CPLP3165AddN2NModels { /// diff --git a/src/portalbackend/PortalBackend.Migrations/Migrations/20230906061622_CPLP-3165-AddN2NModels.cs b/src/portalbackend/PortalBackend.Migrations/Migrations/20230908093243_CPLP-3165-AddN2NModels.cs similarity index 99% rename from src/portalbackend/PortalBackend.Migrations/Migrations/20230906061622_CPLP-3165-AddN2NModels.cs rename to src/portalbackend/PortalBackend.Migrations/Migrations/20230908093243_CPLP-3165-AddN2NModels.cs index 0cc687654a..d159a2c396 100644 --- a/src/portalbackend/PortalBackend.Migrations/Migrations/20230906061622_CPLP-3165-AddN2NModels.cs +++ b/src/portalbackend/PortalBackend.Migrations/Migrations/20230908093243_CPLP-3165-AddN2NModels.cs @@ -163,6 +163,7 @@ protected override void Up(MigrationBuilder migrationBuilder) migrationBuilder.Sql("UPDATE portal.identity_providers set identity_provider_type_id = 3 where identity_provider_category_id = 1;"); migrationBuilder.Sql("UPDATE portal.identity_providers set identity_provider_category_id = 2 where identity_provider_category_id = 1;"); + migrationBuilder.Sql("UPDATE portal.company_applications set company_application_type_id = 1;"); migrationBuilder.DeleteData( schema: "portal", diff --git a/src/portalbackend/PortalBackend.Migrations/Migrations/PortalDbContextModelSnapshot.cs b/src/portalbackend/PortalBackend.Migrations/Migrations/PortalDbContextModelSnapshot.cs index fb16f9753f..dc41ab0142 100644 --- a/src/portalbackend/PortalBackend.Migrations/Migrations/PortalDbContextModelSnapshot.cs +++ b/src/portalbackend/PortalBackend.Migrations/Migrations/PortalDbContextModelSnapshot.cs @@ -19,8 +19,11 @@ ********************************************************************************/ // +using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities; #nullable disable