From 7bf22f941360e2f8e71468c62939e5b20fcfb8f6 Mon Sep 17 00:00:00 2001 From: Vyacheslav1557 Date: Wed, 14 Aug 2024 20:19:44 +0500 Subject: [PATCH] fix(migrations): typo --- migrations/20240727123308_initial.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/migrations/20240727123308_initial.sql b/migrations/20240727123308_initial.sql index 540b147..e0def62 100644 --- a/migrations/20240727123308_initial.sql +++ b/migrations/20240727123308_initial.sql @@ -160,7 +160,7 @@ CREATE INDEX ON testruns USING BTREE (solution_id); CREATE TABLE IF NOT EXISTS participant_problem ( - participand_id INT REFERENCES participants ON DELETE CASCADE, + participant_id INT REFERENCES participants ON DELETE CASCADE, problem_id INT REFERENCES problems ON DELETE CASCADE, result INT NOT NULL, best_score INT NOT NULL @@ -169,6 +169,7 @@ CREATE TABLE IF NOT EXISTS participant_problem -- +goose StatementEnd -- +goose Down +-- +goose StatementBegin DROP FUNCTION IF EXISTS lng_upd_trg_fn CASCADE; DROP TABLE IF EXISTS tests CASCADE; DROP TABLE IF EXISTS solutions CASCADE; @@ -180,3 +181,4 @@ DROP TABLE IF EXISTS contests CASCADE; DROP TABLE IF EXISTS contest_problem CASCADE; DROP TABLE IF EXISTS participants CASCADE; DROP TABLE IF EXISTS participant_problem CASCADE; +-- +goose StatementEnd