update database: add columns for actions and deck
This commit is contained in:
parent
bfc72c497d
commit
a8a53c7690
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,8 @@ def create_games_table():
|
||||||
"one_extra_card BOOLEAN,"
|
"one_extra_card BOOLEAN,"
|
||||||
"one_less_card BOOLEAN,"
|
"one_less_card BOOLEAN,"
|
||||||
"all_or_nothing BOOLEAN,"
|
"all_or_nothing BOOLEAN,"
|
||||||
"num_turns SMALLINT"
|
"num_turns SMALLINT,"
|
||||||
|
"actions TEXT"
|
||||||
");".format(tablename))
|
");".format(tablename))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
# else:
|
# else:
|
||||||
|
@ -51,6 +52,7 @@ def create_seeds_table():
|
||||||
"variant_id SMALLINT NOT NULL,"
|
"variant_id SMALLINT NOT NULL,"
|
||||||
"feasible BOOLEAN," # theoretical solvability
|
"feasible BOOLEAN," # theoretical solvability
|
||||||
"max_score_theoretical SMALLINT" # if infeasible, max score
|
"max_score_theoretical SMALLINT" # if infeasible, max score
|
||||||
|
"deck VARCHAR(60)"
|
||||||
");".format(tablename))
|
");".format(tablename))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue