Fixed missed migration; no tables were available, though.
This commit is contained in:
parent
ce5f2ae401
commit
574d1ef8bf
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user