backend: Remove "games.date_changed" from db spec.

This commit is contained in:
Stephen Seo 2022-03-28 17:12:01 +09:00
parent 760a6bda4f
commit a1668aa0b6
2 changed files with 0 additions and 2 deletions

View file

@ -42,7 +42,6 @@ fn init_conn(sqlite_path: &str, first_run: DBFirstRun) -> Result<Connection, Str
cyan_player INTEGER UNIQUE NOT NULL, cyan_player INTEGER UNIQUE NOT NULL,
magenta_player INTEGER UNIQUE NOT NULL, magenta_player INTEGER UNIQUE NOT NULL,
date_added TEXT NOT NULL, date_added TEXT NOT NULL,
date_changed TEXT NOT NULL,
board TEXT NOT NULL, board TEXT NOT NULL,
status INTEGER NOT NULL, status INTEGER NOT NULL,
FOREIGN KEY(cyan_player) REFERENCES players (id), FOREIGN KEY(cyan_player) REFERENCES players (id),

View file

@ -27,7 +27,6 @@ CREATE TABLE games (id INTEGER PRIMARY KEY NOT NULL,
cyan_player INTEGER UNIQUE, cyan_player INTEGER UNIQUE,
magenta_player INTEGER UNIQUE, magenta_player INTEGER UNIQUE,
date_added TEXT NOT NULL, date_added TEXT NOT NULL,
date_changed TEXT NOT NULL,
board TEXT NOT NULL, board TEXT NOT NULL,
status INTEGER NOT NULL, status INTEGER NOT NULL,
FOREIGN KEY(cyan_player) REFERENCES players (id) ON DELETE SET NULL, FOREIGN KEY(cyan_player) REFERENCES players (id) ON DELETE SET NULL,