fix: comment language table references & fix typo
This commit is contained in:
parent
50d6f4a81f
commit
30ac81b789
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ CREATE TABLE IF NOT EXISTS solutions
|
||||||
id serial NOT NULL,
|
id serial NOT NULL,
|
||||||
participant_id INT REFERENCES participants ON DELETE CASCADE,
|
participant_id INT REFERENCES participants ON DELETE CASCADE,
|
||||||
task_id INT REFERENCES problems ON DELETE CASCADE,
|
task_id INT REFERENCES problems ON DELETE CASCADE,
|
||||||
language_id INT NOT NULL,REFERENCES languages ON DELETE CASCADE,
|
-- language_id INT NOT NULL REFERENCES languages ON DELETE CASCADE,
|
||||||
solution_hash CHAR(128) NOT NULL,
|
solution_hash CHAR(128) NOT NULL,
|
||||||
result INT NOT NULL,
|
result INT NOT NULL,
|
||||||
score INT NOT NULL,
|
score INT NOT NULL,
|
||||||
|
@ -133,7 +133,7 @@ CREATE TABLE IF NOT EXISTS solutions
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX ON solutions USING BTREE (id);
|
CREATE INDEX ON solutions USING BTREE (id);
|
||||||
CREATE INDEX ON solutions USING BTREE (id,participant_id,task_id,language_id);
|
-- CREATE INDEX ON solutions USING BTREE (id,participant_id,task_id,language_id); FIXME
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue