We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93e4b4f commit 90e9c47Copy full SHA for 90e9c47
1 file changed
hasura/triggers/tournament_brackets.sql
@@ -47,8 +47,8 @@ BEGIN
47
JOIN tournament_stages ts ON ts.tournament_id = t.id
48
WHERE ts.id = NEW.tournament_stage_id;
49
50
- IF tournament_status NOT IN ('RegistrationClosed', 'Live') THEN
51
- RAISE EXCEPTION 'Tournament status must be Registration Closed or Live' USING ERRCODE = '22000';
+ IF tournament_status NOT IN ('Setup', 'RegistrationOpen', 'RegistrationClosed', 'Live') THEN
+ RAISE EXCEPTION 'Tournament status must be Setup, Registration Open, Registration Closed or Live' USING ERRCODE = '22000';
52
END IF;
53
54
0 commit comments