From 574d1ef8bffc0865c048eacf50e605d58fe0910e Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 22 Jan 2023 21:05:53 +0100 Subject: [PATCH] Fixed missed migration; no tables were available, though. --- I18N Commander/DataModel/Setup.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/I18N Commander/DataModel/Setup.cs b/I18N Commander/DataModel/Setup.cs index 05f33d6..c8c8ed5 100644 --- a/I18N Commander/DataModel/Setup.cs +++ b/I18N Commander/DataModel/Setup.cs @@ -54,6 +54,9 @@ public static class Setup await using var serviceProvider = serviceCollection.BuildServiceProvider(); var dbContext = serviceProvider.GetRequiredService(); + // 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);