Fixed missed migration; no tables were available, though.
This commit is contained in:
1 file changed
+3
@@ -54,6 +54,9 @@ public static class Setup
|
||||
await using var serviceProvider = serviceCollection.BuildServiceProvider();
|
||||
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:
|
||||
await dbContext.ImportAsync(path2JSONFile);
|
||||
|
||||
|
||||
Reference in new issue
Block a user