backend: Add "date_added" column to db spec.
This commit is contained in:
parent
fcd20af9bd
commit
760a6bda4f
2 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
cyan_player INTEGER UNIQUE NOT NULL,
|
||||
magenta_player INTEGER UNIQUE NOT NULL,
|
||||
date_added TEXT NOT NULL,
|
||||
date_changed TEXT NOT NULL,
|
||||
board TEXT NOT NULL,
|
||||
status INTEGER NOT NULL,
|
||||
|
|
|
@ -26,6 +26,7 @@ CREATE TABLE players (id INTEGER PRIMARY KEY NOT NULL,
|
|||
CREATE TABLE games (id INTEGER PRIMARY KEY NOT NULL,
|
||||
cyan_player INTEGER UNIQUE,
|
||||
magenta_player INTEGER UNIQUE,
|
||||
date_added TEXT NOT NULL,
|
||||
date_changed TEXT NOT NULL,
|
||||
board TEXT NOT NULL,
|
||||
status INTEGER NOT NULL,
|
||||
|
|
Loading…
Reference in a new issue