fix(migrations): typo

This commit is contained in:
Vyacheslav1557 2024-08-14 20:19:44 +05:00
parent cfad38766b
commit 7bf22f9413

View file

@ -160,7 +160,7 @@ CREATE INDEX ON testruns USING BTREE (solution_id);
CREATE TABLE IF NOT EXISTS participant_problem 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, problem_id INT REFERENCES problems ON DELETE CASCADE,
result INT NOT NULL, result INT NOT NULL,
best_score INT NOT NULL best_score INT NOT NULL
@ -169,6 +169,7 @@ CREATE TABLE IF NOT EXISTS participant_problem
-- +goose StatementEnd -- +goose StatementEnd
-- +goose Down -- +goose Down
-- +goose StatementBegin
DROP FUNCTION IF EXISTS lng_upd_trg_fn CASCADE; DROP FUNCTION IF EXISTS lng_upd_trg_fn CASCADE;
DROP TABLE IF EXISTS tests CASCADE; DROP TABLE IF EXISTS tests CASCADE;
DROP TABLE IF EXISTS solutions 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 contest_problem CASCADE;
DROP TABLE IF EXISTS participants CASCADE; DROP TABLE IF EXISTS participants CASCADE;
DROP TABLE IF EXISTS participant_problem CASCADE; DROP TABLE IF EXISTS participant_problem CASCADE;
-- +goose StatementEnd