From 7f3105003f02f70b3ecb6ea1601305c3a509e963 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Wed, 25 May 2016 13:14:42 +0100 Subject: [PATCH] We wan't updating the DB schema. --- PlexRequests.Core/Setup.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PlexRequests.Core/Setup.cs b/PlexRequests.Core/Setup.cs index f00f2a144..8bdf2faa6 100644 --- a/PlexRequests.Core/Setup.cs +++ b/PlexRequests.Core/Setup.cs @@ -26,8 +26,6 @@ #endregion using System; -using System.Collections.Generic; -using System.Linq; using System.Text.RegularExpressions; using Mono.Data.Sqlite; @@ -84,7 +82,11 @@ namespace PlexRequests.Core connection.CreateSchema(version); // Set the default. schema = connection.GetSchemaVersion(); } - + if (version > schema.SchemaVersion) + { + Db.DbConnection().UpdateSchemaVersion(version); + schema = connection.GetSchemaVersion(); + } version = schema.SchemaVersion; return version;