Added protection against empty syncs, fiddled with upgrade again

This commit is contained in:
MikeMaximus
2018-03-16 11:04:54 -06:00
parent 907e3e309a
commit 1d57bc0cc4
4 changed files with 33 additions and 4 deletions
+1 -4
View File
@@ -828,12 +828,9 @@ Public Class mgrSQLite
"DROP TABLE monitorlist; ALTER TABLE monitorlist_new RENAME TO monitorlist;"
'We need to push the local game list against the remote database in case they had syncing disabled
Dim hshMonitorList As Hashtable = mgrMonitorList.ReadList(mgrMonitorList.eListTypes.FullList, mgrSQLite.Database.Local)
Dim oSettings As New mgrSettings
oSettings.LoadSettings()
mgrMonitorList.DoListAddUpdateSync(hshMonitorList, Database.Remote, oSettings.SyncFields)
mgrTags.SyncTags(True)
mgrGameTags.SyncGameTags(True)
mgrMonitorList.SyncMonitorLists(oSettings.SyncFields)
sSQL &= "CREATE TABLE manifest_new (ManifestID TEXT NOT NULL PRIMARY KEY, MonitorID TEXT NOT NULL, FileName TEXT NOT NULL, " &
"DateUpdated TEXT NOT NULL, UpdatedBy TEXT NOT NULL, CheckSum TEXT);"