fix(migrations): typo
This commit is contained in:
parent
cfad38766b
commit
7bf22f9413
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue