From 71b617e754af4b48eebafb1bea589e4a6dc25e0b Mon Sep 17 00:00:00 2001 From: xpnas Date: Tue, 13 Apr 2021 12:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtable=20systeminfo=20not=20fo?= =?UTF-8?q?und=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inotify/Data/DBManager.cs | 3 ++- Inotify/Inotify.csproj | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Inotify/Data/DBManager.cs b/Inotify/Data/DBManager.cs index 03a537d..9fbea4b 100644 --- a/Inotify/Data/DBManager.cs +++ b/Inotify/Data/DBManager.cs @@ -200,12 +200,13 @@ namespace Inotify.Data { var codeVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; - var migrationBuilder = new MigrationBuilder(MigrationName, DBase); var versionProvider = new DatabaseCurrentVersionProvider(DBase); if (!m_migrator.TableExists()) { + var migrationBuilder = new MigrationBuilder(MigrationName, DBase); migrationBuilder.Append(new Version(codeVersion.ToString()), new LatestMigration()); + migrationBuilder.Execute(); versionProvider.SetMigrationVersion(MigrationName, new Version(codeVersion.ToString())); } else diff --git a/Inotify/Inotify.csproj b/Inotify/Inotify.csproj index 776f6ef..87e6953 100644 --- a/Inotify/Inotify.csproj +++ b/Inotify/Inotify.csproj @@ -6,8 +6,8 @@ Linux Inotify.Program enable - 2.1.0.0 - 2.1.0.0 + 2.2.0.0 + 2.2.0.0