From af2eeba8d9d389f7c22a9cd559505cce6bd4c02a Mon Sep 17 00:00:00 2001 From: spla Date: Fri, 20 Nov 2020 09:44:08 +0100 Subject: [PATCH] Added link to game in games list --- db-setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db-setup.py b/db-setup.py index 039e407..f04524a 100644 --- a/db-setup.py +++ b/db-setup.py @@ -159,7 +159,8 @@ if __name__ == '__main__': table = "games" sql = "create table "+table+" (created_at timestamptz, game_id serial, white_user varchar(40), black_user varchar(40), chess_game varchar(200), " - sql +=" chess_status varchar(12), waiting boolean, updated_at timestamptz, next_move varchar(40), last_move varchar(40), moves int, finished boolean default False, PRIMARY KEY(game_id))" + sql +=" chess_status varchar(12), waiting boolean, updated_at timestamptz, next_move varchar(40), last_move varchar(40), moves int, finished boolean default False, " + sql += "chess_link varchar(100), PRIMARY KEY(game_id))" create_table(db, db_user, table, sql) table = "stats"