|
|
@ -26,8 +26,6 @@
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
|
|
|
|
|
|
|
using Mono.Data.Sqlite;
|
|
|
|
using Mono.Data.Sqlite;
|
|
|
@ -84,7 +82,11 @@ namespace PlexRequests.Core
|
|
|
|
connection.CreateSchema(version); // Set the default.
|
|
|
|
connection.CreateSchema(version); // Set the default.
|
|
|
|
schema = connection.GetSchemaVersion();
|
|
|
|
schema = connection.GetSchemaVersion();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (version > schema.SchemaVersion)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Db.DbConnection().UpdateSchemaVersion(version);
|
|
|
|
|
|
|
|
schema = connection.GetSchemaVersion();
|
|
|
|
|
|
|
|
}
|
|
|
|
version = schema.SchemaVersion;
|
|
|
|
version = schema.SchemaVersion;
|
|
|
|
|
|
|
|
|
|
|
|
return version;
|
|
|
|
return version;
|
|
|
|