Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use total tuh as metric for deletion ability
- Loading branch information
Showing
11 changed files
with
112,097 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{ | ||
"extends": "airbnb-base", | ||
"plugins": [ | ||
"import" | ||
] | ||
"extends": "google" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
.../database/sql_statements/migrations/1511392020_alter_player_match_tossup_foreign_keys.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
begin; | ||
|
||
alter table player_match_tossup | ||
drop constraint player_match_tossup_player_id_fkey; | ||
|
||
alter table player_match_tossup | ||
add constraint player_match_tossup_player_id_fkey | ||
foreign key (player_id, tournament_id) | ||
references tournament_player(id, tournament_id) | ||
on delete cascade; | ||
|
||
alter table player_match_tossup | ||
add constraint player_match_tossup_player_plays_in_tournament_match_fkey | ||
foreign key (player_id, match_id, tournament_id) | ||
references player_plays_in_tournament_match(player_id, match_id, tournament_id) | ||
on delete cascade; | ||
|
||
commit; | ||
|
13 changes: 13 additions & 0 deletions
13
...base/sql_statements/migrations/1511392639_alter_player_plays_in_tournament_match_fkey.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
begin; | ||
|
||
alter table player_plays_in_tournament_match | ||
drop constraint player_plays_in_tournament_match_player_id_fkey; | ||
|
||
alter table player_plays_in_tournament_match | ||
add constraint player_plays_in_tournament_match_tournament_player_fkey | ||
foreign key (player_id, tournament_id) | ||
references tournament_player(id, tournament_id) | ||
on delete cascade; | ||
|
||
commit; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters