fix: comment language table references & fix typo

This commit is contained in:
Vyacheslav1557 2024-10-04 23:14:52 +05:00
parent 50d6f4a81f
commit 30ac81b789

View file

@ -123,7 +123,7 @@ CREATE TABLE IF NOT EXISTS solutions
id serial NOT NULL,
participant_id INT REFERENCES participants 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,
result 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,participant_id,task_id,language_id);
-- CREATE INDEX ON solutions USING BTREE (id,participant_id,task_id,language_id); FIXME