From 30ac81b7895923b31b32fb6bfbf1b96126ad6699 Mon Sep 17 00:00:00 2001 From: Vyacheslav1557 Date: Fri, 4 Oct 2024 23:14:52 +0500 Subject: [PATCH] fix: comment language table references & fix typo --- migrations/20240727123308_initial.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/20240727123308_initial.sql b/migrations/20240727123308_initial.sql index 0178f81..43ce8a3 100644 --- a/migrations/20240727123308_initial.sql +++ b/migrations/20240727123308_initial.sql @@ -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