From 78c2551725873cb4a7575ffb56a6bac191ab0460 Mon Sep 17 00:00:00 2001 From: Phil Schneider Date: Thu, 11 Apr 2024 22:08:22 +0200 Subject: [PATCH] fix(seeding): add companyApplication to update seeder --- .../PortalBackend.Migrations/Seeder/BatchUpdateSeeder.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/portalbackend/PortalBackend.Migrations/Seeder/BatchUpdateSeeder.cs b/src/portalbackend/PortalBackend.Migrations/Seeder/BatchUpdateSeeder.cs index 76c062a07a..a609610d49 100644 --- a/src/portalbackend/PortalBackend.Migrations/Seeder/BatchUpdateSeeder.cs +++ b/src/portalbackend/PortalBackend.Migrations/Seeder/BatchUpdateSeeder.cs @@ -151,6 +151,14 @@ await SeedTable("companies", dbEntry.SelfDescriptionDocumentId = entry.SelfDescriptionDocumentId; }, cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None); + await SeedTable("company_applications", + x => x.Id, + x => x.dbEntity.ChecklistProcessId == null, + (dbEntry, entry) => + { + dbEntry.ChecklistProcessId = entry.ChecklistProcessId; + }, cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None); + await _context.SaveChangesAsync(cancellationToken).ConfigureAwait(ConfigureAwaitOptions.None); _logger.LogInformation("Finished BaseEntityBatch Seeder"); }