mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
We wan't updating the DB schema.
This commit is contained in:
parent
339ec178b4
commit
7f3105003f
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue