backend: Update db_handler's db spec.

This commit is contained in:
Stephen Seo 2022-03-28 17:13:32 +09:00
parent a1668aa0b6
commit e7c3670498

View file

@ -39,8 +39,8 @@ fn init_conn(sqlite_path: &str, first_run: DBFirstRun) -> Result<Connection, Str
let result = conn.execute(
"
CREATE TABLE games (id INTEGER PRIMARY KEY NOT NULL,
cyan_player INTEGER UNIQUE NOT NULL,
magenta_player INTEGER UNIQUE NOT NULL,
cyan_player INTEGER UNIQUE,
magenta_player INTEGER UNIQUE,
date_added TEXT NOT NULL,
board TEXT NOT NULL,
status INTEGER NOT NULL,