Added basics for issue #99

This commit is contained in:
Michael J. Seiferling
2017-12-06 00:21:26 -06:00
parent 82f287f322
commit ab06db102c
6 changed files with 152 additions and 1 deletions
+9 -1
View File
@@ -132,6 +132,10 @@ Public Class mgrSQLite
'Add Tables (Remote Game Tags)
sSql &= "CREATE TABLE gametags (TagID TEXT NOT NULL, MonitorID TEXT NOT NULL, PRIMARY KEY(TagID, MonitorID)); "
'Add Tables (Sessions)
sSql &= "CREATE TABLE sessions (MonitorID TEXT NOT NULL, Start INTEGER NOT NULL, End INTEGER NOT NULL, " &
"ComputerName TEXT NOT NULL, PRIMARY KEY(MonitorID, Start));"
'Set Version
sSql &= "PRAGMA user_version=" & mgrCommon.AppVersion
@@ -697,8 +701,12 @@ Public Class mgrSQLite
'Backup DB before starting
BackupDB("v102")
'Add Tables (Sessions)
sSQL = "CREATE TABLE sessions (MonitorID TEXT NOT NULL, Start INTEGER NOT NULL, End INTEGER NOT NULL, " &
"ComputerName TEXT NOT NULL, PRIMARY KEY(MonitorID, Start));"
'Add new field(s)
sSQL = "ALTER TABLE monitorlist ADD COLUMN Comments TEXT;"
sSQL &= "ALTER TABLE monitorlist ADD COLUMN Comments TEXT;"
sSQL &= "PRAGMA user_version=105"