backend: Add "date_added" column to db spec.

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

View file

@ -41,6 +41,7 @@ fn init_conn(sqlite_path: &str, first_run: DBFirstRun) -> Result<Connection, Str
CREATE TABLE games (id INTEGER PRIMARY KEY NOT NULL, CREATE TABLE games (id INTEGER PRIMARY KEY NOT NULL,
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_changed TEXT NOT NULL, date_changed TEXT NOT NULL,
board TEXT NOT NULL, board TEXT NOT NULL,
status INTEGER NOT NULL, status INTEGER NOT NULL,

View file

@ -26,6 +26,7 @@ CREATE TABLE players (id INTEGER PRIMARY KEY NOT NULL,
CREATE TABLE games (id INTEGER PRIMARY KEY NOT NULL, 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_changed TEXT NOT NULL, date_changed TEXT NOT NULL,
board TEXT NOT NULL, board TEXT NOT NULL,
status INTEGER NOT NULL, status INTEGER NOT NULL,