-
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
985cd22
commit 4bc6ad4
Showing
6 changed files
with
93 additions
and
34 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,7 +1,6 @@ | ||
* | ||
.* | ||
|
||
!leaderboard | ||
!player | ||
!go.mod | ||
!go.sum | ||
|
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 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,17 @@ | ||
create table Leaderboard( | ||
LeaderboardId varchar not null primary key, | ||
LastModified varchar not null default '' | ||
); | ||
|
||
create table LeaderboardWeekly( | ||
LeaderboardWeeklyId serial primary key, | ||
LeaderboardId varchar not null, | ||
WeeklyId varchar not null, | ||
foreign key(LeaderboardId) references Leaderboard(LeaderboardId), | ||
foreign key(WeeklyId) references Weekly(WeeklyId) | ||
); | ||
|
||
---- create above / drop below ---- | ||
|
||
drop table LeaderboardWeekly; | ||
drop table Leaderboard; |
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,15 @@ | ||
insert into Leaderboard (LeaderboardId, LastModified) | ||
values | ||
('standings', '2024-05-17T01:10:00+00:00'); | ||
|
||
insert into LeaderboardWeekly (LeaderboardId, WeeklyId) | ||
values | ||
('standings', '2024-04-27'), | ||
('standings', '2024-05-04'), | ||
('standings', '2024-05-11'), | ||
('standings', '2024-05-17'); | ||
|
||
---- create above / drop below ---- | ||
|
||
delete from LeaderboardWeekly; | ||
delete from Leaderboard; |