Fixed missed migration; no tables were available, though.

This commit is contained in:
Thorsten Sommer 2023-01-22 21:05:53 +01:00
parent ce5f2ae401
commit 574d1ef8bf
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -54,6 +54,9 @@ public static class Setup
await using var serviceProvider = serviceCollection.BuildServiceProvider(); await using var serviceProvider = serviceCollection.BuildServiceProvider();
var dbContext = serviceProvider.GetRequiredService<DataContext>(); var dbContext = serviceProvider.GetRequiredService<DataContext>();
// Migrate the database to create the tables etc.:
await Setup.PerformDataMigration(dbContext);
// Next, we import the data from the provided JSON file: // Next, we import the data from the provided JSON file:
await dbContext.ImportAsync(path2JSONFile); await dbContext.ImportAsync(path2JSONFile);