-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dan Whitacre
committed
May 19, 2024
1 parent
48b422e
commit 985cd22
Showing
9 changed files
with
129 additions
and
150 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 |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
|
||
!leaderboard | ||
!player | ||
!weekly | ||
!go.mod | ||
!go.sum | ||
!*.go | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
create table Weekly( | ||
WeeklyId varchar not null primary key | ||
); | ||
|
||
create table WeeklyMatch( | ||
WeeklyMatchId serial primary key, | ||
WeeklyId varchar not null, | ||
MatchId varchar not null, | ||
foreign key(WeeklyId) references Weekly(WeeklyId), | ||
foreign key(MatchId) references Match(MatchId) | ||
); | ||
|
||
---- create above / drop below ---- | ||
|
||
drop table WeeklyMatch; | ||
drop table Weekly; |
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,54 @@ | ||
insert into Weekly (WeeklyId) | ||
values | ||
('2024-04-27'), | ||
('2024-05-04'), | ||
('2024-05-11'), | ||
('2024-05-17'); | ||
|
||
insert into WeeklyMatch (WeeklyId, MatchId) | ||
values | ||
('2024-04-27', '2024-04-27-finals'), | ||
('2024-04-27', '2024-04-27-firstround-a'), | ||
('2024-04-27', '2024-04-27-firstround-b'), | ||
('2024-04-27', '2024-04-27-firstround-c'), | ||
('2024-04-27', '2024-04-27-firstround-d'), | ||
('2024-04-27', '2024-04-27-firstround-e'), | ||
('2024-04-27', '2024-04-27-firstround-f'), | ||
('2024-04-27', '2024-04-27-firstround-g'), | ||
('2024-04-27', '2024-04-27-firstround-h'), | ||
('2024-04-27', '2024-04-27-qualifying'), | ||
('2024-04-27', '2024-04-27-quarterfinal-i'), | ||
('2024-04-27', '2024-04-27-quarterfinal-j'), | ||
('2024-04-27', '2024-04-27-quarterfinal-k'), | ||
('2024-04-27', '2024-04-27-quarterfinal-l'), | ||
('2024-04-27', '2024-04-27-semifinal-m'), | ||
('2024-04-27', '2024-04-27-semifinal-n'), | ||
('2024-05-04', '2024-05-04-finals'), | ||
('2024-05-04', '2024-05-04-qualifying'), | ||
('2024-05-04', '2024-05-04-quarterfinal-a'), | ||
('2024-05-04', '2024-05-04-quarterfinal-b'), | ||
('2024-05-04', '2024-05-04-quarterfinal-c'), | ||
('2024-05-04', '2024-05-04-quarterfinal-d'), | ||
('2024-05-04', '2024-05-04-semifinal-a'), | ||
('2024-05-04', '2024-05-04-semifinal-b'), | ||
('2024-05-11', '2024-05-11-finals'), | ||
('2024-05-11', '2024-05-11-qualifying'), | ||
('2024-05-11', '2024-05-11-quarterfinal-a'), | ||
('2024-05-11', '2024-05-11-quarterfinal-b'), | ||
('2024-05-11', '2024-05-11-quarterfinal-c'), | ||
('2024-05-11', '2024-05-11-quarterfinal-d'), | ||
('2024-05-11', '2024-05-11-semifinal-a'), | ||
('2024-05-11', '2024-05-11-semifinal-b'), | ||
('2024-05-17', '2024-05-17-qualifying'), | ||
('2024-05-17', '2024-05-17-quarterfinal-a'), | ||
('2024-05-17', '2024-05-17-quarterfinal-b'), | ||
('2024-05-17', '2024-05-17-quarterfinal-c'), | ||
('2024-05-17', '2024-05-17-quarterfinal-d'), | ||
('2024-05-17', '2024-05-17-semifinal-a'), | ||
('2024-05-17', '2024-05-17-semifinal-b'), | ||
('2024-05-17', '2024-05-17-finals'); | ||
|
||
---- create above / drop below ---- | ||
|
||
delete from WeeklyMatch; | ||
delete from Weekly; |