Added schema upgrades for both DBs

This commit is contained in:
Ajay Ramachandran
2020-05-03 13:25:45 -04:00
parent d4328f4d54
commit 8638698d61
3 changed files with 21 additions and 11 deletions

View File

@@ -24,6 +24,11 @@ CREATE TABLE IF NOT EXISTS "sponsorTimes" (
"timeSubmitted" INTEGER NOT NULL
);
CREATE TABLE IF NOT EXISTS "config" (
"key" TEXT NOT NULL,
"value" TEXT NOT NULL
);
CREATE INDEX IF NOT EXISTS sponsorTimes_hashedIP on sponsorTimes(hashedIP);
CREATE INDEX IF NOT EXISTS votes_userID on votes(UUID);