@@ -951,8 +951,8 @@ BEGIN
951951 now() - interval ' 7 days'
952952 );
953953
954- INSERT INTO tournament_stages (id, tournament_id, type, " order" , min_teams, max_teams, match_options_id)
955- VALUES (t2_stage_id, tournament_ids[2 ], ' SingleElimination' , 1 , 4 , 8 , t2_options_id);
954+ INSERT INTO tournament_stages (id, tournament_id, type, " order" , min_teams, max_teams, match_options_id, third_place_match, decider_best_of )
955+ VALUES (t2_stage_id, tournament_ids[2 ], ' SingleElimination' , 1 , 4 , 8 , t2_options_id, true, 1 );
956956
957957 -- Register all 6 teams
958958 FOR t IN 1 ..6 LOOP
@@ -1286,8 +1286,8 @@ BEGIN
12861286 now() - interval ' 2 days'
12871287 );
12881288
1289- INSERT INTO tournament_stages (id, tournament_id, type, " order" , min_teams, max_teams, match_options_id)
1290- VALUES (t3_stage_id, tournament_ids[3 ], ' SingleElimination' , 1 , 4 , 16 , t3_options_id);
1289+ INSERT INTO tournament_stages (id, tournament_id, type, " order" , min_teams, max_teams, match_options_id, default_best_of )
1290+ VALUES (t3_stage_id, tournament_ids[3 ], ' SingleElimination' , 1 , 4 , 16 , t3_options_id, 3 );
12911291
12921292 -- Register 2 teams so far
12931293 FOR t IN 1 ..2 LOOP
@@ -1367,12 +1367,12 @@ BEGIN
13671367 );
13681368
13691369 -- Stage 1: Round Robin (2 groups of 4)
1370- INSERT INTO tournament_stages (id, tournament_id, type, " order" , min_teams, max_teams, match_options_id)
1371- VALUES (t4_stage1_id, tournament_ids[4 ], ' RoundRobin' , 1 , 8 , 8 , t4_rr_options_id);
1370+ INSERT INTO tournament_stages (id, tournament_id, type, " order" , min_teams, max_teams, match_options_id, groups )
1371+ VALUES (t4_stage1_id, tournament_ids[4 ], ' RoundRobin' , 1 , 8 , 8 , t4_rr_options_id, 2 );
13721372
13731373 -- Stage 2: Double Elimination (top 2 from each group = 4 teams)
1374- INSERT INTO tournament_stages (id, tournament_id, type, " order" , min_teams, max_teams, match_options_id)
1375- VALUES (t4_stage2_id, tournament_ids[4 ], ' DoubleElimination' , 2 , 4 , 4 , t4_de_options_id);
1374+ INSERT INTO tournament_stages (id, tournament_id, type, " order" , min_teams, max_teams, match_options_id, default_best_of, settings )
1375+ VALUES (t4_stage2_id, tournament_ids[4 ], ' DoubleElimination' , 2 , 4 , 4 , t4_de_options_id, 3 , ' {"round_best_of": {"GF": 5}} ' );
13761376
13771377 -- Register all 8 teams
13781378 FOR t IN 1 ..8 LOOP
0 commit comments