Skip to content

Commit

Permalink
remove beatmap requests
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Mar 5, 2018
1 parent f2397d9 commit b0feaff
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 141 deletions.
48 changes: 0 additions & 48 deletions methods/beatmaps.php

This file was deleted.

25 changes: 0 additions & 25 deletions methods/beatmaps/my_requests.php

This file was deleted.

66 changes: 0 additions & 66 deletions methods/beatmaps/request.php

This file was deleted.

3 changes: 1 addition & 2 deletions methods/tournaments.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function run_method($state)
t.id, t.name, t.description, t.mode, t.status,
t.status_data, t.created_at, t.updated_at,
t.team_size, t.min_team_size, t.exclusivity_starts,
t.exclusivity_ends, t.max_beatmap_requests
t.exclusivity_ends
FROM tournaments t
";
$query .= build_where($parts);
Expand All @@ -38,7 +38,6 @@ function walker(&$el, $key, $stateUser)
$el["status"] = (int) $el["status"];
$el["team_size"] = (int) $el["team_size"];
$el["min_team_size"] = (int) $el["min_team_size"];
$el["max_beatmap_requests"] = (int) $el["max_beatmap_requests"];

if (empty($el["status_data"])) {
$el["status_data"] = null;
Expand Down
2 changes: 2 additions & 0 deletions migrations/11.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP TABLE beatmap_requests;
ALTER TABLE tournaments DROP COLUMN max_beatmap_requests;

0 comments on commit b0feaff

Please sign in to comment.