Fixed database upgrade for users with sync diabled

This commit is contained in:
MikeMaximus
2018-03-02 19:23:07 -06:00
parent 1b6b2fa3a0
commit c94b8b83da
+5
View File
@@ -801,6 +801,11 @@ Public Class mgrSQLite
'Backup DB before starting 'Backup DB before starting
BackupDB("v108") BackupDB("v108")
'The remote manifest now requires a synced monitorlist to function. We need to force a sync for users that had it disabled, otherwise their manifest will be lost.
Dim oSettings As New mgrSettings
oSettings.LoadSettings()
mgrMonitorList.SyncMonitorLists(oSettings.SyncFields)
'Overhaul Tables 'Overhaul Tables
sSQL = "CREATE TABLE monitorlist_new (MonitorID TEXT NOT NULL PRIMARY KEY, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " & sSQL = "CREATE TABLE monitorlist_new (MonitorID TEXT NOT NULL PRIMARY KEY, Name TEXT NOT NULL, Process TEXT NOT NULL, Path TEXT, " &
"AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " & "AbsolutePath BOOLEAN NOT NULL, FolderSave BOOLEAN NOT NULL, FileType TEXT, TimeStamp BOOLEAN NOT NULL, ExcludeList TEXT NOT NULL, " &