Updated inserts to new database schema and removed null coalescing

This commit is contained in:
Ajay Ramachandran
2020-04-29 21:26:11 -04:00
parent 98f4d973e7
commit f23ead56ad
7 changed files with 25 additions and 17 deletions

View File

@@ -20,9 +20,9 @@ CREATE TABLE IF NOT EXISTS "userNames" (
"userName" TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS "categoryVotes" (
"UUID" TEXT NOT NULL UNIQUE,
"category" TEXT NOT NULL,
"votes" INTEGER NOT NULL default '0'
"UUID" TEXT NOT NULL UNIQUE,
"category" TEXT NOT NULL,
"votes" INTEGER NOT NULL default '0'
);
CREATE TABLE IF NOT EXISTS "version" (