add infeasibility table to DB
This commit is contained in:
parent
ce8eea813c
commit
444476c685
1 changed files with 9 additions and 15 deletions
|
@ -168,20 +168,14 @@ CREATE TABLE certificate_game_actions (
|
||||||
PRIMARY KEY (game_id, turn)
|
PRIMARY KEY (game_id, turn)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS infeasibility_reasons;
|
||||||
DROP TABLE IF EXISTS score_upper_bounds;
|
CREATE TABLE infeasibility_reasons (
|
||||||
CREATE TABLE score_upper_bounds (
|
seed TEXT NOT NULL REFERENCES seeds (seed) ON DELETE CASCADE,
|
||||||
seed TEXT NOT NULL REFERENCES seeds ON DELETE CASCADE,
|
|
||||||
score_upper_bound SMALLINT NOT NULL,
|
|
||||||
reason SMALLINT NOT NULL,
|
reason SMALLINT NOT NULL,
|
||||||
UNIQUE (seed, reason)
|
/*
|
||||||
);
|
Some value whose meaning depends on the type of reason, for example index when pace loss occurs.
|
||||||
|
Can be null for some reason.
|
||||||
DROP TABLE IF EXISTS score_lower_bounds;
|
*/
|
||||||
CREATE TABLE score_lower_bounds (
|
value SMALLINT,
|
||||||
seed TEXT NOT NULL REFERENCES seeds ON DELETE CASCADE,
|
PRIMARY KEY (seed, reason)
|
||||||
score_lower_bound SMALLINT NOT NULL,
|
|
||||||
game_id INT REFERENCES games ON DELETE CASCADE,
|
|
||||||
actions TEXT,
|
|
||||||
CHECK (num_nonnulls(game_id, actions) = 1)
|
|
||||||
);
|
);
|
Loading…
Reference in a new issue